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. Database & SysAdmin
  3. Database
  4. creating a register user page?

creating a register user page?

Scheduled Pinned Locked Moved Database
databasetutorialquestionannouncement
2 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.
  • J Offline
    J Offline
    jetset32
    wrote on last edited by
    #1

    hi, i was going to use the ibuyspy example of registering a new user but for some reason my version of the code will let duplicate emails into the database?? im not sure why?? Any way I wondered if any of you guys could point me in the right direction regarding registering a new user page? My login page works fine ...but this register page is giving me a headache!! Thanks in advance! Jetset:-D

    C 1 Reply Last reply
    0
    • J jetset32

      hi, i was going to use the ibuyspy example of registering a new user but for some reason my version of the code will let duplicate emails into the database?? im not sure why?? Any way I wondered if any of you guys could point me in the right direction regarding registering a new user page? My login page works fine ...but this register page is giving me a headache!! Thanks in advance! Jetset:-D

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      jetset32 wrote: my version of the code will let duplicate emails into the database?? im not sure why?? Add a unique constraint to the database column. Then if you attempt an INSERT or UPDATE with a duplicate email then the operation will fail and you can catch the SqlException Alternatively, you can write a stored procedure that does a check first and returns a success code back if the check passed and the record was INSERTed or UPDATEed. jetset32 wrote: but this register page is giving me a headache!! For details on ASP.NET see the ASP.NET forum. Unless the thing giving you the headache is database related :-D


      Do you want to know more? WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums

      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