简体   繁体   中英

asp.net vb.net app_code alternative

I'm trying to find an alternative to the app_code folder to import my classes in my aspx files...

Should be fairly easy with Microsoft Visual Studio... but I don't have it, can not have it, will not have it even if I beg my boss...

We have 2 Servers 1 for the development and the other for the public, I don't really know why since I'm new at the place, but on the development server, each developer has a folder to its name.

Now, if I try to place my classes in app_code and I have a error, well I block all of the others programmers until it is fixed.

I'm taking any suggestions to how to proceed to import classes into an .aspx file that it is not a class, but mainly html with some aspx vb.net in <% %>...

Anyway, not the best working environment, but any help would be greatly appreciated.

If you want to reference a class in all your aspx files specify the namespace in web.config.

<add namespace="YourNamespace"/>

Look at a similar question .

EDIT: To import a namespace in a singla aspx page do this:

<%@ Import Namespace="YourNamespace" %>

Related question

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM