473,385 Members | 1,693 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,385 software developers and data experts.

Reference a class without App_Code

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. The notion of App_Code
didn't exist in the good old VS 2003. I have a web application, I
deployed on a server. For security reasons, I can't use the App_Code
folder and my classes must be referenced directly (VB. NET).

Basic question : how do I reference them ?
If they are not in the App_Code, my myPage.aspx.vb classes can't "see"
them.
I imagine this is pretty simple, but lurking the groups and the helps
files gave me no info.

Thanks VERY MUCH in advance,
Dan.

Feb 14 '07 #1
4 6852
On Feb 14, 7:49 pm, "dan_vee" <dan_...@yahoo.comwrote:
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. The notion of App_Code
didn't exist in the good old VS 2003. I have a web application, I
deployed on a server. For security reasons, I can't use the App_Code
folder and my classes must be referenced directly (VB. NET).
Download the WAP (Web Application Projects for Visual Studio
2005... ;)

..t

--
http://ajaxwidgets.com
Free ASP.NET Ajax Widgets NOW!

Feb 15 '07 #2
"dan_vee" <da*****@yahoo.comwrote in message
news:11**********************@k78g2000cwa.googlegr oups.com...
I imagine this is pretty simple, but lurking the groups and the helps
files gave me no info.
Download and install SP1 for VS.NET 2005
Feb 15 '07 #3
On 15 fév, 05:28, "Mark Rae" <m...@markNOSPAMrae.comwrote:
"dan_vee" <dan_...@yahoo.comwrote in message

news:11**********************@k78g2000cwa.googlegr oups.com...
I imagine this is pretty simple, but lurking the groups and the helps
files gave me no info.

Download and install SP1 for VS.NET 2005
Thanks for taking the time to answer me guys.

But reading back my message, I realize my bad. I wasn't very precise
with my question.
I built my application with VS 2005 so I don't need to convert it. If
I'm not mistaking, that is what Web Application Projects for Visual
Studio 2005 does. Also, I went through the hotfixes in SP1 and didn't
see at first glance in what way this can help me.

Basically, I want to reference a Class in my code behind class without
App_code.
When deploying my application, all I can push to the server are ASPX
pages and VB files. Nothing PreCompiled. The server compiles at run
times.
What I'm looking for is a equivalent to "include myclass.cpp" (C++) in
VB.NET

Thanks again, and sorry for the confusion.

Dan.

Feb 15 '07 #4
On Feb 15, 10:39 am, "dan_vee" <dan_...@yahoo.comwrote:
On 15 fév, 05:28, "Mark Rae" <m...@markNOSPAMrae.comwrote:
"dan_vee" <dan_...@yahoo.comwrote in message
news:11**********************@k78g2000cwa.googlegr oups.com...
I imagine this is pretty simple, but lurking the groups and the helps
files gave me no info.
Download and install SP1 for VS.NET 2005

Thanks for taking the time to answer me guys.

But reading back my message, I realize my bad. I wasn't very precise
with my question.
I built my application with VS 2005 so I don't need to convert it. If
I'm not mistaking, that is what Web Application Projects for Visual
Studio 2005 does. Also, I went through the hotfixes in SP1 and didn't
see at first glance in what way this can help me.

Basically, I want to reference a Class in my code behind class without
App_code.
When deploying my application, all I can push to the server are ASPX
pages and VB files. Nothing PreCompiled. The server compiles at run
times.
What I'm looking for is a equivalent to "include myclass.cpp" (C++) in
VB.NET

Thanks again, and sorry for the confusion.

Dan.
You do need to convert it if you want to reference classes outside of
app_code as you mentioned. The service pack as well as the patch
mentioned allow for a web application project that follows a similar
model to the vs 2003 one.

Feb 15 '07 #5

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

Similar topics

7
by: Samuel | last post by:
Hi, I am building a page that makes use of user control as a templating technique. The following is that I have in mind and it is actually working: Root/ -- login.aspx -- login.aspx.vb --...
1
by: HIK | last post by:
I am trying to write a class which has a function that loads a dataset, and performs and xslt tranformtion on the dataset and returns the resulting string. In asp.net 1.1 I was able to do most...
1
by: Robert Zurer | last post by:
My first ASP.NET 2.0 app. I added a reference to a class library containg the types I want to as a source of data to populate my pages. The dll and all the dlls it uses appear in the newly...
8
by: PJ | last post by:
How can I get a reference to the master page class? It is defined as a partial class, but I cannot seem to type a variable to the name of the partial class? The compiler continually shows "The...
7
by: Rob R. Ainscough | last post by:
ASP.NET with VB.NET using 2.0 framework I've created a class (myClass) under App_Code specific to my web application. I have a method in myClass called Display: Public Function...
3
by: Tom | last post by:
In my asp.net application, I have created a class for global variables and functions, and I have placed this in the app_code directory so it is available to all my pages. That part has worked...
2
by: PeterKellner | last post by:
I'm wanting to reference page controls from a cs file in the app_code directory. I'm getting a _Defaullt could not be found, missing directive or assembly reference error. Very simple example...
8
by: shapper | last post by:
Hello, I am working with VS 2008 and created a Web Application Project. I added a class but whatever I do the class is not visible to my aspx pages or anywhere else. I then changed the...
1
by: chris.kennedy | last post by:
This is a little OT. I have a website which uses vb classes in the app_code folder which in turn call a data service. I want compile the app_code vb files into a separate dll (to use Sandcastle on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.