"Breaking out" of a Server.Execute call?

Discussion in 'ASP General' started by Bob Milutinovic, Apr 4, 2007.

  1. Greetings, folks.

    Wondering if someone might be able to shed some light on this without my
    having to load up 'n test it for myself.

    I have a page calling another with Server.Execute, but depending on what the
    outcome of some data checks on that called page is, it may need to "break
    out" of the call with a Response.Redirect.

    What I want to know is, will this eventually lead to memory leaks because
    there's no return to the original calling page?

    The environment's a "plain vanilla" IIS installation under Windows Server
    2003 Web Edition.

    Ultimately I suppose it's not entirely crucial that I need to use this
    method; I could always break the original page into two and use
    Server.Transfer to avoid the possibility of "left-overs," but I hope someone
    here can state with at least a little authority whether or not this problem
    might occur.

    Thanks in advance,

    --
    Bob Milutinovic
    Cognicom - "Australia's Web Presence Specialists"
    http://www.cognicom.tk/
    telephone (0417) 45-77-66
    facsimile (02) 4727-1898
    -------------------------------------------------------
    To respond by e-mail: <myname>@<mydomain> (work it out)
     
    Bob Milutinovic, Apr 4, 2007
    #1
    1. Advertising

  2. "Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot com> wrote in message
    news:...
    > server.execute is a dynamic include and becomes part of the originating
    > page. When you leave the include, you are also leaving the original page.
    >
    > part of your conditional statement which causes the exit should also close
    > any open objects before the exit
    >


    Many thanks for that response, Paul; certainly makes life much easier :)

    --
    Bob Milutinovic
    Cognicom - "Australia's Web Presence Specialists"
    http://www.cognicom.tk/
    telephone (0417) 45-77-66
    facsimile (02) 4727-1898
    -------------------------------------------------------
    To respond by e-mail: <myname>@<mydomain> (work it out)
     
    Bob Milutinovic, Apr 9, 2007
    #2
    1. Advertising

  3. "Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot com> wrote in message
    news:...
    > server.execute is a dynamic include and becomes part of the originating
    > page. When you leave the include, you are also leaving the original page.
    >
    > part of your conditional statement which causes the exit should also close
    > any open objects before the exit
    >


    Many thanks for that response, Jon; certainly makes life much easier.

    And please accept my apologies for calling you "Paul" in my reply of a few
    seconds ago; it's been a _very_ long few days here :-/

    --
    Bob Milutinovic
    Cognicom - "Australia's Web Presence Specialists"
    http://www.cognicom.tk/
    telephone (0417) 45-77-66
    facsimile (02) 4727-1898
    -------------------------------------------------------
    To respond by e-mail: <myname>@<mydomain> (work it out)
     
    Bob Milutinovic, Apr 9, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. NP
    Replies:
    0
    Views:
    5,283
  2. Bruno

    Table breaking out of div

    Bruno, Oct 18, 2003, in forum: HTML
    Replies:
    7
    Views:
    4,292
    Bruno
    Oct 19, 2003
  3. Offbreed

    Breaking out of frames

    Offbreed, Apr 15, 2006, in forum: HTML
    Replies:
    6
    Views:
    448
    Offbreed
    Apr 17, 2006
  4. Graham
    Replies:
    2
    Views:
    417
    Graham
    Feb 2, 2004
  5. Savas Ates
    Replies:
    1
    Views:
    286
    Patrice
    Aug 17, 2004
Loading...

Share This Page