Edit this page

Pass More than one Argument

By default, the ajaxRequest and ajaxRequestWithTarget functions accept only one argument. Sometimes you might need to pass more arguments. You can do this by joining the arguments on the client:

var arg3 = arg1 + "," + arg2;

and split them on the server in the RadAjaxPanel1_AjaxRequest :

private void RadAjaxPanel1_AjaxRequest(object sender, AjaxRequestEventArgs e)
    string argument = (e.Argument);
    String[] stringArray = argument.Split(",".ToCharArray());
Protected Sub RadAjaxPanel1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs) Handles RadAjaxPanel1.AjaxRequest
    Dim argument As String = e.Argument
    Dim stringArray As [String]() = argument.Split(",".ToCharArray())
End Sub

See Also