When to use Server.Transfer?
-
Hello Robert, Assume you have two forms form1.aspx and form2.aspx. now you want all the controls of form1.aspx can be retrieve in form2.aspx, in this situation you can use form2.aspx. Regards, S Kumar
-
Hello Robert, Assume you have two forms form1.aspx and form2.aspx. now you want all the controls of form1.aspx can be retrieve in form2.aspx, in this situation you can use form2.aspx. Regards, S Kumar
In 2.0 we have three options and all come with its +/-ve A) Response.redirect -ve : round trips, value can not be passed across pages b) Server.Transfer -ve : Loose browser history, but good for value pass and no round trip C) PostBackUrl New feature in 2.0 and in my views, you should use this only when you need to transfer from page a to b. Because in background it creates all the page events of page a :(( ... So use wisely and smartly... Amit Gugnani