RadControls for ASP.NET AJAX By default the ajaxRequest and ajaxRequestWithTarget functions accept only one argument. Sometimes one might need to pass more arguments - this can be achieved by joining the arguments on the client:
CopyASPX
var arg3 = arg1 + "," + arg2;
ajaxManager.ajaxRequest(arg3);
//
and split them on the server in the AjaxManager_AjaxRequest:
CopyC#
private void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
string argument = (e.Argument);
String[] stringArray = argument.Split(",".ToCharArray());
}
CopyVB.NET
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
Dim argument As String = e.Argument
Dim stringArray As [String]() = argument.Split(",".ToCharArray())
End Sub