What is the difference between Server.Transfer and
Response.Redirect? Why would you choose one over the other?

Answer Posted / ramesh

Server.Redirect:
response the page or return output without any request from
the client(Browser)
ex
Server.Redirect("Demo.aspx")
Disadvantage
it does not allow query String

Request.Redirect:
send the request(page) to server and processed it, finaly
redirect to corressponding page
Response.Redirect("Demo.aspx")

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between ASP Session State and ASP.Net Session State?

585


Explain authorization levels in .net ?

612


Where you store Connection string in "Web.Config" file in ASP.NET?

584


How do I open an ashx file?

541


Why select Web API?

568






What is the difference between equals() and == in c#?

572


What is the used of "ispostback" property?

569


How do sessions work?

538


Which data type does the rangevalidator control support?

555


What are the namespaces used in asp.net mvc? : asp.net mvc

518


What is scope of an application variable in asp.net?

504


Differentiate between client-side and server-side validations in web pages.

561


How do u deploy your asp.net application?

612


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?

523


Can user control be stored in library?

521