hi,
Anyone know this?
C# code for change password?
i have a settings page...in that page i should do the password changes..
code:
protected void btnchange_Click(object sender, EventArgs e)
{
int changed;
string loginemailid = txtloginemailid.Text.Trim();
string oldpass = txtoldpassword.Text.Trim();
string newpass = txtnewpassword.Text.Trim();
if (loginemailid != null && oldpass != null)
{
changed = mydac.changeuserpassword(loginemailid, oldpass, newpass);
if (changed == 1)
{
lblmsg.Text = "Your new Password Updated";
}
}
else
{
lblmsg.Text = "Updation Failed,Ensure Your Login Information Is Correct";
}
}