hi
Here i have a code that need to display the value of the label before redirect. The redirect is workiing fine but it just could not display the label value even though i place a thread. The else statemenrt is working fine.
Thanks in advance.
Here i have a code that need to display the value of the label before redirect. The redirect is workiing fine but it just could not display the label value even though i place a thread. The else statemenrt is working fine.
If
x.CheckUserAndPassword(txtUsername.Text, txtCurrentPassword.Text, txtNewPassword.Text) Then
lblerror.Enabled =
True
lblerror.Text =
"Change Success"
Threading.Thread.Sleep(5000)
Response.Redirect(
"~/Login.aspx", False)
Else
lblerror.Text =
"Try Again, Your username or password does not match"
End If
Thanks in advance.