Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > "Breaking out" of a Server.Execute call?

Reply
Thread Tools

"Breaking out" of a Server.Execute call?

 
 
Bob Milutinovic
Guest
Posts: n/a
 
      04-04-2007
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)



 
Reply With Quote
 
 
 
 
Bob Milutinovic
Guest
Posts: n/a
 
      04-09-2007
"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot com> wrote in message
news:(E-Mail Removed)...
> 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)


 
Reply With Quote
 
 
 
 
Bob Milutinovic
Guest
Posts: n/a
 
      04-09-2007
"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot com> wrote in message
news:(E-Mail Removed)...
> 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)


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments