What have you tried? Which version ot asp.net? Are you using VS?
I am working on visual studo 2005 professional edition.
I am working on asp.net 3.0
Actually, i tried a very simple thing.
I created a class library. Inside the library i wrote a simple method as below
- namespace DllTest
-
{
-
public class Class1
-
{
-
public Class1()
-
{
-
}
-
public string check(string a)
-
{
-
string j = a + "Test ok";
-
return j;
-
}
-
}
-
-
}
I build the program, So a dll will be created in the debug folder of the above application.
Now I create a simple new application in C# and asp.net and include the above dll using Add Reference
i included the namespace
and wrote the below code in button click event
- private void button1_Click(object sender, EventArgs e)
-
{
-
DllTest.Class1 a1 = new Class1();
-
string jj= a1.check("checkout");
-
MessageBox.Show(jj);
-
}
Now when i execute the above program , it will show at the button click
"checkoutTestOk"
Now as stated above, I have created a ClassLibrary.
My question was, is there anything ,just similar to the ClassLibrary, in web applications
In case i want a webapplication to be called in various other webpages, Can i do something similar to the above
regards
cmrhema