What is the difference between Server.Transfer and
Response.Redirect? Why would you choose one over the other?
Answer Posted / avinash
server.transfer() is used to request a page it directly
requests the page whereas response.redirect() is used it
first say browser to call the page.
Exampme:
if((name.text=="avinash")&&(password=="niit"))
{
response.redirect("mypage.aspx");
}
else
{
server.transfer("error.aspx");
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Difference between using directive vs using statement?
Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?
When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
Why asp.net mvc is better than asp.net? : Asp.Net MVC
Is asp.net is a programming language?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
What is the difference between ASP Session State and ASP.Net Session State?
How can you identify that the page is post back?
What is the difference between custom web user control and a custom web server control?
What is the best Macanism to clear the Cache in asp.net
What is difference between session and cookie?
Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc
What are the main differences between asp and asp.net?
What is loop in asp.net?
What are the steps involved to fill a dataset?