At login time, if the password has expired, I am redirecting the user to the maintenance form. I have a code like this which makes use of the Redirect to call the maintenance form as well as adding a message:
If lnDayBeforeNextPasswordChange <= 0 Then
oApp.oResponse.Redirect("DataEntryDBUsers.aspx?LXMessage=Your password has expired.")
Return True
End If
Don't pay attention to the spaces. This is only to show the code approach.
So, at this point, I am now in the DataEntryDBUsers.aspx page where the user can update his password but was shown a dialog box in javascript telling him that his password has expired. This works well but when the user tries to change his password, if a validation kicks in at postback, this will show the DataEntryDBUsers.aspx page again as well as the "password expired" message because this is part of the auto generated link of the postback. Is there a way to change the postback URL once the page is initially loaded in order to only have the DataEntryDBUsers.aspx URL which would then resolve the issue of having only the message to be shown once?