Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Web application : Classes

Web application : Classes

Scheduled Pinned Locked Moved ASP.NET
questiondiscussionlearning
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    ss mmm
    wrote on last edited by
    #1

    When I developed the website, I had put the classes which needs to be accessed throughout the application in App_Code. Now when I develop a web application, I don't see App_Code folder. Am able to drop them in App_GlobalResources folder and it works but I read it is for the global resource files. What is the best practice and where should I drop the class files?

    Thanks

    J 1 Reply Last reply
    0
    • S ss mmm

      When I developed the website, I had put the classes which needs to be accessed throughout the application in App_Code. Now when I develop a web application, I don't see App_Code folder. Am able to drop them in App_GlobalResources folder and it works but I read it is for the global resource files. What is the best practice and where should I drop the class files?

      Thanks

      J Offline
      J Offline
      just3ala2
      wrote on last edited by
      #2

      Hi there, 1) Right click on the project in the solution explorer 2) Choose Add ASP.NET Folder --> Choose App_Code Now you can add your classes there :)

      Best Regards 3ala2 :)

      S 1 Reply Last reply
      0
      • J just3ala2

        Hi there, 1) Right click on the project in the solution explorer 2) Choose Add ASP.NET Folder --> Choose App_Code Now you can add your classes there :)

        Best Regards 3ala2 :)

        S Offline
        S Offline
        ss mmm
        wrote on last edited by
        #3

        That is not possible since ASP.Net folder consists of only App_GlobalResources, localresources, Data, Browsers and Theme. On a web application, am not able to add App_Code. On a web site, as you said, am able to. Where should I drop the global class files on the web application?

        Thanks

        M 1 Reply Last reply
        0
        • S ss mmm

          That is not possible since ASP.Net folder consists of only App_GlobalResources, localresources, Data, Browsers and Theme. On a web application, am not able to add App_Code. On a web site, as you said, am able to. Where should I drop the global class files on the web application?

          Thanks

          M Offline
          M Offline
          Member 96
          wrote on last edited by
          #4

          You are correct, there is no option for App_Code, I just ran into this the other day. You can simply make a folder manually by that name and asp.net will recognize it as something to be compiled separately. However if you are making a web application rather than a web "site" it won't matter where you put the classes as they will be compiled into the entire assembly anyway.


          When everyone is a hero no one is a hero.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups