What is the difference between Server.Transfer and
Response.Redirect? Why would I choose one over the other?
Answers were Sorted based on User's Feedback
Answer / raghumadhav tirunagari
server.Trnasfer will prevent round trip. it will redirect
pages which or in the same directory. NO way to pass the
query strings . Thru http context we can able to get the
previous page control values.
Response.Redirect : There is a round trip to process the
request. We can redirect to any page external / internal
other than aspx. We can pass the query string thru which we
can manage sessions.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / manjunath
1)response.redirect sends the message to the browser to
send to different pages while server.transfer will not send
the message rather redirect user directly to some differnt
page.
so there is no round trip in server.transfer but
response.redirect has the round trip puttind load on the
server.
2)server.transfer will not redirect to the different server
while response.redirect can redirect to any different
server.
3)server.transfer can store data using paramater
called "preserved form" , this query strings are available
in the next calling pages.In latter it is not possible.
Is This Answer Correct ? | 1 Yes | 1 No |
can u give me real example of how web.config overrides the machine.config file?
Explain write back and write through caches? : .NET Architecture
how to use custom field validation
7. Oop-Diff B/w Interfacse and abstract class.
Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure. : Dot net architecture
How does an appdomain get created?
What is WPF and WCF?
Explain the race around condition? How can it be overcome? : Dot net architecture
how we can fire event in databound column in datagrid without using button?
.net platform independent or dependent?
Use of Enable view state ? if turn off what happen ?
What is Opf3