Difference betwen server.transfer and response.redirect
-
Anybody can tellme the difference between server.transfer and Response.redirect. Tnx in adv.
Balasubramanian K.
-
Anybody can tellme the difference between server.transfer and Response.redirect. Tnx in adv.
Balasubramanian K.
Response.redirect provides a roundtrip to the server and server.transfer does not. For details search microsoft IIS help Also Response.redirect redirects both the html page as well as the aspx page where as the server.transfer transfers the control only to the aspx pages
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Anybody can tellme the difference between server.transfer and Response.redirect. Tnx in adv.
Balasubramanian K.
server.transfer is used to transfer one page to anotherpage within the website. response.redirect is used transfer one page to another page within the website as other websites.in response redirect we can pass the querystring.
your's subbu
-
Response.redirect provides a roundtrip to the server and server.transfer does not. For details search microsoft IIS help Also Response.redirect redirects both the html page as well as the aspx page where as the server.transfer transfers the control only to the aspx pages
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
Thanks for your reply
Balasubramanian K.
-
server.transfer is used to transfer one page to anotherpage within the website. response.redirect is used transfer one page to another page within the website as other websites.in response redirect we can pass the querystring.
your's subbu
can u give me any sample code for redirecting to other website by using response.redirect?
Balasubramanian K.
-
Anybody can tellme the difference between server.transfer and Response.redirect. Tnx in adv.
Balasubramanian K.
server.execute stops the execution of the current page and transfers the control to the URL passed in as a parameter. After that page has finished execution control passes back to the original page and execution resumes at the statement after the execute method call. server.transfer is similar to server.execute but unlike that methos the execution does not resume to the original page but end when the new page completes executing response.redirect transfers the control to the given url but there is server round trip. In response.redirect the new url can be seen , but in server.execute and transfer the new page url is not seen even though the control is passed to the new page. Performance is better in server.execute and transfer nut they cannot be used with server-side include #exec directive.
Maniiiiiiiiiiiiiii
-
can u give me any sample code for redirecting to other website by using response.redirect?
Balasubramanian K.
Response.Redirect("~/Default.aspx");
Maniiiiiiiiiiiiiii
-
server.execute stops the execution of the current page and transfers the control to the URL passed in as a parameter. After that page has finished execution control passes back to the original page and execution resumes at the statement after the execute method call. server.transfer is similar to server.execute but unlike that methos the execution does not resume to the original page but end when the new page completes executing response.redirect transfers the control to the given url but there is server round trip. In response.redirect the new url can be seen , but in server.execute and transfer the new page url is not seen even though the control is passed to the new page. Performance is better in server.execute and transfer nut they cannot be used with server-side include #exec directive.
Maniiiiiiiiiiiiiii
Yah... thank you for your information
Balasubramanian K.