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