-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: raagz
Message 4 in Discussion
Hi
Banu,
Yes ,
its possible to call a public method existing in one ASPX page from another ASPX
page.
Here
is the sample code.
WebForm1.aspx.cs
public
int MyWebForm1Function(int a,int b)
{
int Total = a + b;
return Total;
}
------------------------------------------------------------
WebForm2.aspx.cs
Page_Load()
{
WebForm1 obj = new WebForm1();
int pTotal = obj.MyWebForm1Function(1,2);
Response.Write(pTotal.ToString());
}
----------------------------------------------------------------
Hope
this helps you.
Raghavendra
-----Original Message-----
From: BanupriyaVelmurugan
[mailto:[EMAIL PROTECTED]
Sent: Friday, September 24,
2004 5:31 PM
To: BDOTNET
Subject: Re: Including a
dll/class in asp.net
New Message on BDOTNET
Including
a dll/class in asp.net
Reply
Reply to Sender Recommend
Message 3 in
Discussion
From: BanupriyaVelmurugan
Hi Vijay,
Thanx.
But I need a particular function of one aspx file to
be called from the other aspx file. All the files are of the
same project & solution.
For example I am creating a class file with some common
functions that are called from different aspx file. The same way
I want to call a particular function from one codebehind file
from another code behind file.
Can it be possible to do?
Regards,
Banu
View other groups in this
category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]