.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Server.Transfer vs Server.Execute

Posted By: Ramesh     Posted Date: December 26, 2008    Points:2   Category :ASP.Net
What is the difference between server.transfer vs server.execute?

Please help me understand the concept of Server.Transfer and Server.Execute.

Any help would be appreciated?

Responses
Author: Praveen             
Posted Date: December 26, 2008     Points: 5   

Hi,
Server.Execute will execute the page destination Page and return back to the caller page that means user will not see the page which is there in Server.Execute.


Server.Transfer method will transfer the page to the destination page. That means User will able to see the Destination Page if any page defined in Server.Transfer Method.

Server.Transfer transfer the page within the server itself so round trip is saved and user can not able to see the destination Page URL in the Browser

Author: Kumar             
Posted Date: December 28, 2008     Points: 5   

Hi,

Pls refer
http://scour.com/view/result/difference%20between%20server.transfer%20and%20server.Execute%20%20asp.net/QVNQLk5FVCAtIFNlcnZlci5UcmFuc2ZlciB2L3MgU2VydmVyLkV4ZWN1dGUgwqsgVGVjaCBBaGVhZA==/aHR0cDovL3RlY2hhaGVhZC53b3JkcHJlc3MuY29tLzIwMDcvMTAvMTQvYXNwbmV0LXNlcnZlcnRyYW5zZmVyLXZzLXNlcnZlcmV4ZWN1dGUv/?URL=http://techahead.wordpress.com/2007/10/14/aspnet-servertransfer-vs-serverexecute/

Server.Transfer(): It ends up the execution of current form and begins execution with new web form

Server.Execute():it begins execution with new web form but it still holds current web form .With the help of this we can combine the result of two web forms.

thanks and regards,
Kumar



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend