KaxAjaxControlAlert Method |
Namespace: Kettic.AspNet.Controls
This is the easiest way to show a message, generated from the server, on the client in a message box.
Note: Special characteres are not escaped.
private void Button1_Click(object sender, System.EventArgs e) { if (!UserAccessAllowed(UserProfile)) { KaxAjaxConsole1.Alert("You are not allowed to access this user control!"); } else { LoadSecretControl(); } }
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click If Not UserAccessAllowed(UserProfile) Then KaxAjaxConsole1.Alert("You are not allowed to access this user control!") Else LoadSecretControl() End If End Sub 'Button1_Click