Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does this line code will be executed? 1

Status
Not open for further replies.

920506

Programmer
Jun 13, 2003
201
0
0
US
Hi everyone,
if I have code like this in page1.asp:

If a=b then
'do something

Else
response.redirect("page2.asp")\
End if

set cmdTemp=Nothing
conn.close
set conn=nothing

Does that mean if the line response.redirect statement get executed, the last three lines of code in page1.asp will not be executed and the obejct and conn actually will not close or released?
 
i meant to say that if response.redirect statement gets executed, then last 3 lines wont be executed...

-DNG
 
Does that mean if the line response.redirect statement get executed, the last three lines of code in page1.asp will not be executed and the obejct and conn actually will not close or released?

That is correct.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top