Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 How to call class in the asp.net form with C# code

Author  Topic 

sheena
Starting Member

45 Posts

Posted - 2007-04-29 : 01:11:46
I want to know about the classes used in for web-applications of ASP.NET 2005.

I have created the class file and stored it in the APP_CODE folder as it asked me to save there.
Now,i want to call that class file for the code of C# in ASP.NET form then how can i call it ??

For E.g. I have created the class file for Validation.cs.
The class declared or created is public only
Now this file i want to use it in other application then how can i use it ??

Did anything is to be added in web.config to use the class files ??

Pls let me know at the earliest possible time.....

Thanxs.....



spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-04-29 : 10:27:14
you just have to include the proper namespace with using
to the file in the app_code in the file you wish to access it in.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -