Response.Redirect (Server.Transfer)

akatiyaloces

New Member
i can use response.redirect to an html page but not to an asp page. why's that ?<BR><BR>also when should server.transfer be used ? <BR>i know that in asp it was recommended as a faster way to redirect the user to another page but in asp.net it doesn't work even for an html page.<BR><BR>thank you !<BR><BR>mihaiResponse.Redirect works just fine. Are you using the right case? Here's a simple example:<BR><BR><script language="VB" runat="server"><BR>Sub Page_Load(sender as Object, e as EventArgs)<BR> Response.Redirect("foo.aspx")<BR>End Sub<BR></script><BR><BR>hththank you for the answer.<BR><BR>perhaps you've heard this thousands of times but i can't help saying it:<BR><BR>yesterday it didnt't work for "foo.asp" (.asp page not .aspx) but now it does (!?)<BR>
 
Back
Top