How to create object of a class which is outside of App_Code folder in Asp.net 2.0 using C#. ??

102 views
Skip to first unread message

chandan

unread,
Dec 3, 2007, 5:51:57 AM12/3/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
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


Cerebrus

unread,
Dec 3, 2007, 7:29:16 AM12/3/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
What exactly does "outside the App_code directory" mean? Where does
your class file lie ? And why can't you put in in App_code, the
directory designated for shared code. If it lies outside, your class
would not be accessible to pages throughout your application. The only
other option is to precompile the class and put the assembly into the
Bin directory. (Not counting the option wherein you install the
assembly to the GAC).
Message has been deleted

mini Bhutani

unread,
Dec 3, 2007, 10:44:10 AM12/3/07
to DotNetDe...@googlegroups.com
to create an object of a class u have to include the class in App_code b'coz only those classes are globally acessible .
Reply all
Reply to author
Forward
0 new messages