Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reference a class defined in one file by a different codebehind page

Status
Not open for further replies.

TerryDad2

Programmer
Jul 10, 2002
29
0
0
US
I know this should be simple, but I just can't figure it out.

I am moving the scripting out of an aspx page into a codebehind page. The aspx page has a reference to a .vb file that has a number of reusable functions. When compiling the codebehind page, I get errors that the custom functions defined in the .vb page are not defined, which is obvious, since I can't figure out how to reference the class defined in the .vb page in the codebehind page.

If this all made sense, any suggestion?

Terry
 
Dim MyFunctions As New GeneralFunctions()

Where GeneralFunctions is the name of the class in your .vb file That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top