My own class in asp.net 2.0
Hi,
I am currently working on a asp.net website with sql 2005 server.
My problem is, that i want to create my own class.
When i do chose 'add new item' and then 'c# class', visual studio proposes to put the file into the App_Code folder, which i did.
Now i wrote a bit code in the class which looked like this:
namespace myNameSpace
{
/// <summary>
/// Summary description for Class1
/// </summary>
public class Class1
{
public Class1()
{
}
public void test()
{
}
}
}
Not much in there, just 2 methods. It alos works to make an object inside the masterpage.master for example like:
Class1 myClass = new Class1();
Now when i try to call a method of the class i dont get any but the usual methods like toString().
Why is that? What do i have to do, to write my own class and be able to call methods.
Thank you in advance
Ivan
__________________
Ivan
|