Creating Functions that any class can use in a so

dan74mm

New Member
The title may be misleading. I am looking to create some global functions or subs that I can call from any webform or usercontrol class in a web solution. <BR><BR>Can I do this in a User Control:<BR><BR><script language="vb" runat="server"><BR>Public Sub DoIt()<BR>'code<BR>End Sub<BR></script><BR><BR>... and if so, how would I call DoIt() from another webform class? Is this even the correct way to go about this?<BR><BR>All input is appreciated.Create a business object and instantiate it on any page that needs to use it. Here is a basic example: http://www.aspnextgen.com/tutorials.aspx?tutorialid=74
 
Back
Top