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

  • SEARCH
  • Home
  • 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 109273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:02:36+00:00 2026-05-11T02:02:36+00:00

In the past, I have not really used namespaces, but in this project I

  • 0

In the past, I have not really used namespaces, but in this project I am using SourceSafe which requires a project, which puts everything in namespaces…

In the past, I have just been able to make a public static class in the App_Code folder and access it frorm anywhere in my application, but now I cant seem to do that.

For example, my default.aspx.cs looks like this:

namespace Personnel_Database {     public partial class _default : System.Web.UI.Page     {         protected void Page_Load(object sender, EventArgs e)         {               utils.someFunction();//this does not work 

and my utils.cs class looks like this:

namespace Personnel_Database.App_Code {     public static class utils     { 

How can I have it so I can call util.someMethod() inside of my default? Am I wrong assuming it is a namespace problem? I just want utils.cs to be available globally inside namespace Personnel_Database

  • 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. 2026-05-11T02:02:37+00:00Added an answer on May 11, 2026 at 2:02 am

    Either you include the namespace with a using directive:

    using Personnel_Database.App_Code; // now you can use everything that is inside the Personnel_Database.App_Code namespace namespace Personnel_Database {   ... 

    Or you use the fully quallified name of the utils class (including its namespace), e.g:

      protected void Page_Load(object sender, EventArgs e)   {     Personnel_Database.App_Code.utils.someFunction();     ... 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have not had to do something like this in the past and am
I have been using Grails for the past few months and I really like
I've not used C++ very much in the past, and have recently been doing
I have never used SN or Git but I really want to start. I
First of all, I'm not really sure if this should be on stackoverflow but
In the past I have really enjoyed using Trac with subversion repositories hosted on
Update: Ok, after getting past the fact that I did not have MSDTC set
In the past I have used MAPISendMail to launch Outlook (or whatever the desired
In the past I have used Managed Direct X and DirectShow.Net to play a
In the past I have worked with the microchip PIC family, but I would

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.