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

Top 5 Contributors of the Month

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

What is the use of Server.Execute()

Posted By: Ramesh     Posted Date: July 30, 2010    Points:2   Category :ASP.Net

What is the use of Server.Execute() in asp.net application. Which scenario we should use Server.Execute() method.


Author: Syed Shakeer Hussain             
Posted Date: July 30, 2010     Points: 5   

When Server.Execute() is used, a URL is passed to it as a parameter, and the control moves to this new page. Execution of code happens on the new page. Once code execution gets over, the control returns to the initial page, just after where it was called. However, in the case of Server.Transfer, it works very much the same, the difference being the execution stops at the new page itself (means the control isn't returned to the calling page).
The URL in the browser remains the first page URL (doesn't refresh to the new page URL) as the browser isn't requested to do so.

Author: BangaruBabuPureti             
Posted Date: July 31, 2010     Points: 5   
Author: Abhisek Panda             
Posted Date: July 31, 2010     Points: 5   
Author: Mallikarjuna Chigicherla             
Posted Date: August 03, 2010     Points: 5   

It Executes the handler for the specified virtual path in the context of the current request.



Thanks & Regards,
Mallikarjuna Chigicherla

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

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