What is the difference between Server.Transfer and
Response.Redirect? Why would I choose one over the other?
Answer Posted / 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 |
Post New Answer View All Answers
Differences between VS 2005, 2008 and 2010 ?
I am working with asp.net 2005 and Crystal report 10. I have an image field on my dataset to show on Crystal report.And the image is shows dynamically from database in image field of CR. The image field is showing well on my Crystal report on its first page with all other data but when i click to open second page of CR,it does not show any data on that.I found that this is because of adding the image field on crystal report. Because when i remove the image field from the CR then it will run both the pages of CR. I am using the Page Load event to bind CR data with Database. And i have already check with the Init event to bind CR , but it still not shows the data on second page when i use image field on that. Please give solution for that.....
Explain about the base class library provided by microsoft.net?
How do you handle this COM components developed in other programming languages in .NET?
What is .net mobile lists. Explain with an example? : Microsoft dot net mobile
Explain the race around condition? How can it be overcome? : Dot net architecture
8. Oop-Why and were we use Interfacse and Abstract class.
How do I know when my thread pool work item has completed?
What is the difference between an event and a delegate?
Explain the race around condition? : .NET Architecture
What is the difference between metadata and menifest ?
What is IL code, CLR, CTS, GAC & GC?
deference between display and visibility property of CSS
What happens when you try to update data in a dataset in .net while the record is already deleted in sql server as backend?
Explain about clr?