|
-
May 17th, 2005, 04:52 AM
#1
Thread Starter
Frenzied Member
Response.Redirect overloaded methods
Response.Redirect has two methods:
public void Redirect(string);
public void Redirect(string, bool);
For the second it says:
Redirects a client to a new URL. Specifies the new URL and whether execution of the current page should terminate.
So if I set the second argument to false it will finish execution of the current page. So this means that, for example, if at the point of redirection a database connection is open it will execute the code after the redirection to close the connection? Is this correct?
For the first method does it finish current page execution by default?
Anyone know? It's just been playing on my mind.
Cheers
DJ
If I have been helpful please rate my post. If I haven't tell me!
-
May 17th, 2005, 05:24 AM
#2
Re: Response.Redirect overloaded methods
Logically, the classes in page1 will be destroyed, and so the objects within it.
-
May 17th, 2005, 05:32 AM
#3
Thread Starter
Frenzied Member
Re: Response.Redirect overloaded methods
So whats the point of the overloaded method?
DJ
If I have been helpful please rate my post. If I haven't tell me!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|