mercredi 12 juillet 2017

Execute a code after response redirect

If hBarId.Value = 0 Then
            BindImportList()
            mpePopImportMember.Show()
        End If
    If hBarId.Value <> 0 Then
        Response.Redirect(HttpContext.Current.Request.Url.AbsolutePath)
        If hBarId.Value = 0 Then
            BindImportList()
            mpePopImportMember.Show()
        End If
    End If

I have a pop out window that i call using the id = mpePopImportMember. If the BarId = 0. I am able to view the pop out window display list for the first if else statement. For the second if else statement, if the BarId <> 0 then i want to refresh the page then call out the mpePopImportMember.

For the second if else statement, It only manage to redirect to the page but it does not display the pop out window. Does anyone know how to execute those 2 query successfully for the second if else statement

Aucun commentaire:

Enregistrer un commentaire