how to call class file in asp.net
-
hi i have created a C# class file and want to include the methods of it in my asp page. how i am suppose do that, should i called as a class library in my page or make use of Run method in my asp page Any suggestion kal13na13
-
hi i have created a C# class file and want to include the methods of it in my asp page. how i am suppose do that, should i called as a class library in my page or make use of Run method in my asp page Any suggestion kal13na13
There are a couple of options that you can use to call the methods defined in a seperate source file. + Use the
script
tag with therunat="server"
, specify the path of the source file in thesrc
attribute of thescript
element. + Use the@ Assembly
directive, and specify the source file in thesrc
attribute. + Compile the source file into a seperate assembly, and simply reference to this assembly.