Results 1 to 3 of 3

Thread: Response.Redirect overloaded methods

  1. #1

    Thread Starter
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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!

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Response.Redirect overloaded methods

    Logically, the classes in page1 will be destroyed, and so the objects within it.

  3. #3

    Thread Starter
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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
  •  



Click Here to Expand Forum to Full Width