Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chandan - 03 Dec 2007 05:58 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.