>My problem is the following:in the if condition , the ID variable has lost its value.Am I doing something wrong?
Not possible under normal circumstances. How do you know it lost its value.
>ID=Request.QueryString("ID_No")
>if ID>0 then
On the face of these two lines, if ID is not numeric, it would be a runtime error on the server. You have to ascertain this fact to secure the script.
[tt]
[red]'[/red]if ID>0 then 'replaced by the following
if isnumeric(ID) then
if clng(ID)>0 then 'or simply ID>0, up to you
'etc
else
'etc
end if
else
'determine what you want
end if
[/tt]