Hi friends,
I wanted to create object of the class which was outside of App_Code
folder , but i am not able to create the instance of that class.. can
we do that into Asp.Net 2.0 , C#
How to create object of a class which is outside of App_Code folder in
Asp.net 2.0 using C#.
thanks in advance.. waiting for your valuable comments.
Chandan
Peter Bromberg [C# MVP] - 03 Dec 2007 14:30 GMT
You can do it very easily if you use the Web Application Project model, just
include the class file in the project. Alternatively, compile the class file
into a library in a separate project in your solution and have the web app
set a reference to it.
--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com
> Hi friends,
>
[quoted text clipped - 8 lines]
>
> Chandan
bruce barker - 03 Dec 2007 17:22 GMT
if using visual studio, add a reference to the assembly containing the
class, if notepad, manually add a reference in web.config.
-- bruce (sqlwork.com)
> Hi friends,
>
[quoted text clipped - 8 lines]
>
> Chandan