Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1069983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:29:57+00:00 2026-05-16T20:29:57+00:00

I have a class file stored in the app code folder. A certain page

  • 0

I have a class file stored in the app code folder. A certain page that I want to access is inside its own folder within the root and it is using the namespace within the class file in the app code folder. How do I tell the application where the file is?

I’m sure I could put the code in a file inside my folder, but I’d rather not have duplicate code in two different files… unless there is a way to make a reference of some type. Please advise.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:29:58+00:00Added an answer on May 16, 2026 at 8:29 pm

    This is a problem when using ASP.NET website project templates. There is no namespace as far as I know in website projects. I’m not that familiar with them because I always use Web Application Project templates. If you’re going this route, try putting all your class files in the App_Code folder, or alternatively create a separate library project and reference that.

    Here is some info on migration to WAP if you decide to do that (best if project not too big):

    http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx

    You might be able to tweak the order of compilation:

    http://msdn.microsoft.com/en-us/library/54dwfbb7.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class file that contains all the classes that are needed for
I have a class that parses very large file (that can't fit in memory)
I have a helper class pulling a string from an XML file. That string
I have an actionscript file that defines a class that I would like to
I have some template code that I would prefer to have stored in a
I have some information stored as SharedPreferences. I need to access that information from
I have created a C# class file by using a XSD-file as an input.
I used to have one class for one file. For example car.cs has the
If I have a Java source file (*.java) or a class file (*.class), how
I have a class isSearching with a single boolean property in a 'functions' file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.