.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

How to call WebPage 1 method in WebPage 2

Posted By: Ramesh     Posted Date: April 08, 2010    Points:2   Category :ASP.Net
hi,

I have one method in WebPage 1 and i want to call this method in WebPage 2 in asp.net. Is it possible?

I am using C# as my code language.

regards
Ramesh

Responses
Author: Venkatesh Babu K M             
Posted Date: April 19, 2010     Points: 5   

Hello Ramesh,

Since this method is getting used in both the WebPages's, as a best practice:

1. Create a new class
2. Have your common method in that class
3. Inherit that class in your pages.

Thanks,
Venkatesh



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