how to create change password control in asp.net2.0

Posted by Kshitij_Bhargava under ASP.NET on 7/20/2008 | Views : 4794 | Status : [Member] | Replies : 2
how to create change password control in asp.net2.0 also give code on web.config setting

porovider is odbc




Responses

Posted by: Bubbly on: 2/18/2010 [Member] Bronze

Up
0
Down
Hello,

you can use in-built change password control directly.

Or check this link

http://www.asp.net/cssadapters/Membership/ChangePassword.aspx

++
Thanks & Regards,
Deepika

Kshitij_Bhargava, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Majith on: 7/21/2008 [Member] Starter

Up
0
Down
In Asp.Net 2.0 there is LOGIN toolbar , it provides some set of controls,

They are,

1. Login control
2. Create New user
3. Change Password
4. User status

we can use these controls instead of designing it, the code for changing password using oledb as follows,



If txtOldPassword.Text = "" Or txtNewPassword.Text = "" Or txtReType.Text = "" Then
'lblMsg.Visible = True
MsgBox "Fill all the details", vbInformation, "LIIT"

Else
If txtOldPassword.Text = dr("pass") Then

rs.Close

If txtNewPassword.Text = txtReType.Text Then
rs.Open "update login set [pwd]='" & txtNewPassword.Text & "'"
MsgBox "Password has been changed sucessfully", vbInformation, "LIIT"

Else

MsgBox "Confirm wrong"
End If
Else

MsgBox "Incorrect old password"

End If

End If


the above code is in vb6.0 you can use the same method .
Thanx

Kshitij_Bhargava, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response