Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help creating 'forget password' page to get login details 1

Status
Not open for further replies.

aspdotnetuser

Programmer
Oct 10, 2008
45
GB
Hi,

I have an existing website which already has a login box - I know how to do this in PHP easily but ASP.NET is alot different and I'm guessing it should be easier to do?

So far I have a link next to the login box which says 'Forgtten your login details?' when the user clicks on the link it takes them to the forgetdetails.aspx page. I have a textbox which the user is required to enter their emailaddress and a button.

Should the SQL code used to retrieve the userid and password be executed when the button is clicked? Or is there a more advanced way of doing this in ASP.NET?
 
Hi,

Well yes you can, as soon as the button is clicked you would check the database for the email address and if it existed then send them [or reset] their password.

.Net Membership makes this real easy and you should really go this route..


Cheers,
Jon

ToDo....
 
Thanks, I managed to work out how connect to database and use queries to populate textbox's and other controls with data from the database.

Are there any advantages to using datasource controls? They seem more difficult to use and less flexible than coding the connection details and queries!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top