RadAjax for ASP.NET

RadAjax Send comments on this topic.
GetAjaxEventReference Method
See Also  Example
Telerik.WebControls.RadAjaxUtils Namespace > RadAJAXControl Class : GetAjaxEventReference Method


argument
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)
C# 
public string GetAjaxEventReference( 
   string 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 BasicCopy Code
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Page.Load
    ' 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;"
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