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

Posted on 2012-08-20
Last Modified: 2012-08-25
Hi i have a web application in
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
Question by:taz8020
    LVL 83

    Expert Comment

    Where have you put the class file?
    LVL 3

    Author Comment

    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?
    LVL 3

    Accepted Solution

    Was being dull had rootname space used
    LVL 3

    Author Closing Comment

    was being dul

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now