it's important for me to check something before postback. there are several postback controls on the page. is there any way to get postback details(url) before the page go into it?
thanks
thanks
Dim premittedToBeRedirected As Boolean = False
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If (HasPermissionsToBeRedirected() = True) Then
premittedToBeRedirected = True
End If
End Sub
Private Sub RedirectingLinkButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RedirectingLinkButton.Click
If premittedToBeRedirected = True Then
Response.Redirect(url)
End If
End Sub
Private Function HasPermissionsToBeRedirected() As Boolean
'This method checks if the person has permission to be redirected
End Sub
boolean premittedToBeRedirected = False;
protected void Page_Load(Object sender, System.EventArgs e)
{
If (HasPermissionsToBeRedirected() == true)
{
premittedToBeRedirected = true;
}
}
private void RedirectingLinkButton_Click(Object sender, System.EventArgs e )
{
If(premittedToBeRedirected == true)
{
Response.Redirect(url)
}
}
Private boolean HasPermissionsToBeRedirected()
{
//This method checks if the person has permission to be redirected
}
Comment