Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another postback issue
Message
From
07/07/2006 01:50:33
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Another postback issue
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01134363
Message ID:
01134363
Views:
60
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 the password has expired
                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?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform