Gets client side code which raises an AjaxRequest event in either AJAX Manager or
AJAX Panel.
Namespace: Telerik.WebControls.RadAjaxUtils
Assembly: RadAjax (in RadAjax.dll)
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function GetAjaxEventReference( _
ByVal argument As String _
) As String |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As RadAJAXControl
Dim argument As String
Dim value As String
value = instance.GetAjaxEventReference(argument)
|
Parameters
- argument
Example
| C# | Copy Code |
|---|
private void Page_Load(object
sender, System.EventArgs e)
{
// Create a generic AJAX Request when the button is clicked.
// "return false" to prevent postbacks
Button1.Attributes["onclick"] =
RadAjaxPanel1.GetAjaxEventReference("argument...") + " return
false;";
// Generic requests can be fired on both AJAX Manager and AJAX Panel
Button1.Attributes["onclick"] =
RadAjaxManager1.GetAjaxEventReference("argument...") + " return
false;";
}
|
| Visual Basic | Copy Code |
|---|
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Page.Load
Button1.Attributes["onclick"] = RadAjaxPanel1.GetAjaxEventReference("argument...") & " return false;"
Button1.Attributes["onclick"] = RadAjaxManager1.GetAjaxEventReference("argument...") & " return false;"
End Sub
|
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also