469,323 Members | 1,486 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

server.execute return value??

JT
i hope no one is getting sick of my server.execute/transfer questions..

does server.execute return a value? im wondering what happens if an error
occurs in the .asp file that i'm calling with the server.execute command??
is there a value/flag i can set in the case of an error that can be seen
once i return to the calling page? if not i was thinking that i would have
to use a session variable for my error handling.

i want to stay true to the model, view, control architecture so i don't want
to simply redirect in the case of an error - i want to send a value back to
my control page which will decide where to go.

tia
jt


Jul 19 '05 #1
1 3142


does server.execute return a value?


No, I don't believe so, but you can pass values in session variables or
application variables.

page1.asp:

<%
Server.Execute "page2.asp"
Response.Write "The value is " & Session("ReturnVal")
%>

page2.asp:
<%
Session("ReturnVal") = "something"
%>

Ray at work
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Michael | last post: by
3 posts views Thread by Sophos | last post: by
6 posts views Thread by den 2005 | last post: by
17 posts views Thread by =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.