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
Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?
What is a web based system?
Give me one example of Web API Routing?
I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)
Where viewstate value is stored in asp.net?
Can we set which type of comparison we want to perform by the CompareValidator control?
Which object wraps the state or data of a user?
How are sessions stored?
What is mvc in angular?
What permissions do asp.net applications posses by default?
How to display Alert in ASP.NET
Why is mvc better than asp.net?
If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?
What is difference Between Authentication and authorization?
Is it possible to create web application with both webforms and mvc?