Example below is not working to delay a page redirect after 5 sec. - The Header update doesn't seem to work. Is there a pure VB solution for is the header the only way to go? Thought of just running a timer to delay next line of execution?
Tried commented out section as well - still didn't fire the header change.
Dim TF As String = ResetNewPassword(uName, pAnwser, newPassword)
Dim dateUpdated As Boolean = UpdateLastLoginDate(uName)
If TF Then
uEmail = u.Email
Label2.Text = "Users password has been updated"
Training.xMail(uEmail, Label2.Text, "Password Changed")
Response.AppendHeader("REFRESH", "5;URL=Default.aspx")
'Dim meta As New HtmlMeta()
'meta.HttpEquiv = "Refresh"
'meta.Content = "5;url=Page2.aspx"
'Me.Page.Controls.Add(meta)
PassQuestion1.Text = "You will now be redirected in 5 seconds"
Else
Label2.Text = "Users password failed to update please try again!!!"
Training.Mail("mail_user_acct", Label2.Text, "Password Failed - resetPassword")
End If