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. ASP.Net 2 authentication WITHOUT the new stuff? [modified]

ASP.Net 2 authentication WITHOUT the new stuff? [modified]

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netsecurityhelp
4 Posts 2 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.
  • C Offline
    C Offline
    cdengler
    wrote on last edited by
    #1

    Ok, perhaps I just don't get it. I'm an old asp developer... I've been using .net 1.1 for some time now. Now I'm tasked with implementing a new asp.net 2 site on top of an older sql 2000 db. This is where things get whacked for me: every article I can find wants me to use the aspnetdb (whether in sql Express or by porting it over to an existing sql database). But the database I have already contains the username and password stuff. DOes this mean I must re-write all of the logic to look this information up in other tables across databases? Does this mean I must re-code my object model? Help me obi wan... isn't there a better way? -- modified at 1:35 Wednesday 16th August, 2006

    M 1 Reply Last reply
    0
    • C cdengler

      Ok, perhaps I just don't get it. I'm an old asp developer... I've been using .net 1.1 for some time now. Now I'm tasked with implementing a new asp.net 2 site on top of an older sql 2000 db. This is where things get whacked for me: every article I can find wants me to use the aspnetdb (whether in sql Express or by porting it over to an existing sql database). But the database I have already contains the username and password stuff. DOes this mean I must re-write all of the logic to look this information up in other tables across databases? Does this mean I must re-code my object model? Help me obi wan... isn't there a better way? -- modified at 1:35 Wednesday 16th August, 2006

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, The ASP.NET 2.0 privides a couple of common services like Membership, Roles ... in the provider model using the predefined tables in the aspnetdb database (or you can install in your current db). And to use these services, you are only required to do some configurations without writing any line of code. However, if you want to use these services with your custom database schema then you need to privide your own custom providers[^]. In addition, you can keep using your custom object model to do all the common tasks instead of using the supported services.

      C 1 Reply Last reply
      0
      • M minhpc_bk

        Hi there, The ASP.NET 2.0 privides a couple of common services like Membership, Roles ... in the provider model using the predefined tables in the aspnetdb database (or you can install in your current db). And to use these services, you are only required to do some configurations without writing any line of code. However, if you want to use these services with your custom database schema then you need to privide your own custom providers[^]. In addition, you can keep using your custom object model to do all the common tasks instead of using the supported services.

        C Offline
        C Offline
        cdengler
        wrote on last edited by
        #3

        Yes, I see regarding the membership, roles, etc... however it's tough to re-write your database when everything centers around it, you know? I did find out late last night that it seems to be the best route to write a custom provider. I can't believe how long it took me to find out this information... I would think this was a more common problem..? Oh well, thank you so much for replying.

        C 1 Reply Last reply
        0
        • C cdengler

          Yes, I see regarding the membership, roles, etc... however it's tough to re-write your database when everything centers around it, you know? I did find out late last night that it seems to be the best route to write a custom provider. I can't believe how long it took me to find out this information... I would think this was a more common problem..? Oh well, thank you so much for replying.

          C Offline
          C Offline
          cdengler
          wrote on last edited by
          #4

          Ok, so I've written the entire thing... it accesses my previously built database... if there is anyone out there who would like to see the process from beginning to end, let me know and I will post an easy to use article...

          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