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
Let's say I have an existing application written using vb6 and this application utilizes windows 2000 com+ transaction services. How would you approach migrating this application to.net?
Explain the significance of routing? : asp.net mvc
Differentiate globalization and localization.
What is the difference between executescalar and executenonquery?
How can I create master page in asp net?
What is a query string in a url?
What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?
How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.
What is difference Between Authentication and authorization?
When was asp.net released?
What is a windows service?
To display data in a Repeater control which template you provide?
What is the difference between a candidate key and primary key?
What is the difference between visual basic and asp.net?
How does cookies work in asp net?