Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How do you use imports on a class in a Web Application

Posted on 2012-08-20
4
Medium Priority
?
554 Views
Last Modified: 2012-08-25
Hi i have a web application in vb.net.
I gace a class that I have wriiten and what to use the imports myclass but its not working.

In my other web site i did it as a web project not an application. In that I put the class in a folder called app_code and all works well. Now i want to use it in the web application and it is draiving me mad. what am i doing wrong.  I have did try to put it in different folders and using complie.

The error is "Namespace or type does not contain a public member or cannot be found"

Please help
0
Comment
Question by:taz8020
  • 3
4 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38312080
Where have you put the class file?
0
 
LVL 3

Author Comment

by:taz8020
ID: 38312163
I have tried it in a App_Global, in the root and in App_Code. But does not give me the option for App_code in the .net folders.

Where should it go?
0
 
LVL 3

Accepted Solution

by:
taz8020 earned 0 total points
ID: 38312485
Was being dull had rootname space used
0
 
LVL 3

Author Closing Comment

by:taz8020
ID: 38332106
was being dul
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Loops Section Overview
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question