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 login and password recovery control

ASP.NET login and password recovery control

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netdatabasedebugging
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.
  • F Offline
    F Offline
    For_IT
    wrote on last edited by
    #1

    Hi all, I am trying to create login and password recovery page ASP.NET2.0. I have user login and password stored in table in the database. I am using Login and password recovery controls. I am handling "Authenticate" event of login control. During the password recovery, I generate new password and send email to the user at specified address. To handle this which event of passwordprecovery should be handled? I have handled SendingEmail event, but when I checked in debug, I found that control does not go there on ButtonSubmit click. Can anyone suggest me, how can I do this. If someone has demo on this, that will be really helpful. Thanks a lot.

    M 1 Reply Last reply
    0
    • F For_IT

      Hi all, I am trying to create login and password recovery page ASP.NET2.0. I have user login and password stored in table in the database. I am using Login and password recovery controls. I am handling "Authenticate" event of login control. During the password recovery, I generate new password and send email to the user at specified address. To handle this which event of passwordprecovery should be handled? I have handled SendingEmail event, but when I checked in debug, I found that control does not go there on ButtonSubmit click. Can anyone suggest me, how can I do this. If someone has demo on this, that will be really helpful. Thanks a lot.

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

      If you want to see the SendingEmail event working, you need to make sure that the you provider the Membership provider for the application, also the user is existing in the system. Otherwise, you need to look at the UserLookupError. If you want to control to generate the password on your own, you can provider your custom membership provider, or create an event handler for the VerifyingUser event. In the handler, you basically do a checking on provided username, reset the password, send an email if necessary, then remember to set the Cancel property to true.

      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