calling function from another page in asp.net

saidev

Active member
Joined
Dec 22, 2005
Messages
27
Programming Experience
1-3
Hi
I have a function called addsub() in a.aspx page. i want to call this
addsub() function in b.aspx page. how to call this..? can you guys help me with this..
Thanks
 
I think you would want to add a generic class module (.vb file) to your project, maybe call it common.vb or something, and put your addsub() method as a public sub in that class.

Then on both of your pages you would put the following code:
VB.NET:
Dim myCommon as New common
myCommon.addsub()
 
Back
Top