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. Namespace?

Namespace?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasequestionxml
3 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.
  • N Offline
    N Offline
    nakins
    wrote on last edited by
    #1

    I'm starting out learning asp.net and VB/C# by making a custom membership provider. In the sample provider from the MSDN site, they show a list of imports, a db schema comment, and then Namespace Samples.AspNet.Membership There is a End Namespace at the eof. Prior to finding this, I found another example provider where these two lines were not included. I'm working in Visual Web Developer and when a code behind file is created, there is nothing of namespace to be found in it auto generated stubs. Do I need to have these namespace lines in my code behind file? If so, what should it be? What is it that Namespace Samples.AspNet.Membership is doing?:confused:

    S 1 Reply Last reply
    0
    • N nakins

      I'm starting out learning asp.net and VB/C# by making a custom membership provider. In the sample provider from the MSDN site, they show a list of imports, a db schema comment, and then Namespace Samples.AspNet.Membership There is a End Namespace at the eof. Prior to finding this, I found another example provider where these two lines were not included. I'm working in Visual Web Developer and when a code behind file is created, there is nothing of namespace to be found in it auto generated stubs. Do I need to have these namespace lines in my code behind file? If so, what should it be? What is it that Namespace Samples.AspNet.Membership is doing?:confused:

      S Offline
      S Offline
      StylezHouse
      wrote on last edited by
      #2

      Namespaces are a simple way of structuring your code into simular areas. Think about it like this. The System.Data.SqlClient namespace contains all of the sql data objects and the System.Web.UI.WebControls contains all of the webcontrols. So the Datagrid is a class in the System.Web.UI.WebControls Namespace. Kind of babbling because its late, but do you get the idea?

      A 1 Reply Last reply
      0
      • S StylezHouse

        Namespaces are a simple way of structuring your code into simular areas. Think about it like this. The System.Data.SqlClient namespace contains all of the sql data objects and the System.Web.UI.WebControls contains all of the webcontrols. So the Datagrid is a class in the System.Web.UI.WebControls Namespace. Kind of babbling because its late, but do you get the idea?

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        ok, so what do I use for my custom membership provider? Do I need to put it in anyway?

        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