473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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
Dec 3 '07 #1
2 3403
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

"chandan" wrote:
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
Dec 3 '07 #2
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)
chandan wrote:
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
Dec 3 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
1
by: alex | last post by:
Moving existing asp.net 1.1 app to 2.0 and using VS2005 I have noticed: 1) Class View window display ONLY name spaces and classes located in the new folder App_Code. 2) Using "Add New Item" on...
2
by: tbh | last post by:
hi, hope this cross-post is OK. it's unclear to me whether this question belongs more under vstudio or dotnet... i'm using VS2005 pro and am one co-developer of a web solution that is getting to...
4
by: dan_vee | last post by:
Hello everyone, I've been out of the .NET loop for a little while. This question might seem trivial for many of you. But I 'm a bit stumped. I recently started to work with VS 2005 ASP.NET 2.0....
7
by: Rusty Hill | last post by:
I have a base class that contains code for the profile object that works fine when the code is not in a file within the App_Code folder. Once I put the code into the App_Code folder it will no...
9
by: Grant Schenck | last post by:
Hello, I have a base class with several derived classes: ScriptBase + ScriptCallInbound + ScriptCallOutbound I then have another class: Line
4
by: =?Utf-8?B?UmJydA==?= | last post by:
Sorry if this is a question that has been answered elsewhere. I did a search and didn't find the answer I am looking for. I am writing an ASP.NET app in VB.NET and am defining some classes in the...
2
by: chandan | last post by:
Hi, How to create an instance of user control in a class(simple) file not in Page class file? As I tried I can do it in page class file but not in simple class file. Let me know the solution!! ...
1
by: =?Utf-8?B?U2NvdHQ=?= | last post by:
Hello, Using VS2008 in a C# web service application, a class has been created that inherits from the ConfigurationSelection. This class file has been placed in the App_Code folder. The...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.