Thursday, March 29, 2012

separate vb file

I can't remember how to do this (not sure how to ask either) - hope you guys can help.

I would like to create a vb file with public functions (that can be called from any page in my application. Not a web service, but a vb file in the same application).

If I want to call a public function in that vb file from somepage.aspx, how do I (import?, register?) accomplish it.

Hope that makes sense!

Thanks

Set that function as public shared/static then you can call it anywhere Namespace.Class.Function


Thanks! I was trying to look it up in Essential Asp.Net - kept getting lost!

Cheers

0 comments:

Post a Comment