"Breaking out" of a Server.Execute call?

"Breaking out" of a Server.Execute call?

am 04.04.2007 06:27:28 von Bob Milutinovic

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: @ (work it out)

Re: "Breaking out" of a Server.Execute call?

am 04.04.2007 19:40:24 von Jon Paal

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

Re: "Breaking out" of a Server.Execute call?

am 09.04.2007 06:57:27 von Bob Milutinovic

"Jon Paal [MSMD]" wrote in message
news:1317oo3p577rh84@corp.supernews.com...
> 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: @ (work it out)

Re: "Breaking out" of a Server.Execute call?

am 09.04.2007 06:59:28 von Bob Milutinovic

"Jon Paal [MSMD]" wrote in message
news:1317oo3p577rh84@corp.supernews.com...
> 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: @ (work it out)