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
How do I open an ashx file?
What does asp.net stand for?
What are cao and sao.
Explain the difference between value type and reference type?
How can you handle errors in Web API?
What are server side controls?
Explain the updatepanel?
How do I send an email message from my ASP.NET page?
How to prevent client side validation from the ASP.NET validation controls?
Define a static class?
Why and where this web.config file is used?
What is advantage of asp.net?
What is the difference between adding reference in solution explorer and adding references by using ?
What does mvc represent in asp.net? : asp.net mvc
Is asp.net and .net the same?