Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another postback issue
Message
 
To
07/07/2006 01:50:33
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01134363
Message ID:
01134411
Views:
16
This message has been marked as the solution to the initial question of the thread.
maybe I have not understood right, but why don't you put the code with the popup in the page_load and check for Page.IsPostBack?:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
   If Not Me.Page.IsPostBack Then
      Response.Write("<script>javascript:alert('passowrd expired') </script>")
   End If
End Sub
this runs only once....
Franco

>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform