New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
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:
JavaScript
var arg3 = arg1 + "," + arg2;
ajaxPanel.ajaxRequest(arg3);
and split them on the server in the RadAjaxPanel1_AjaxRequest :
C#
private void RadAjaxPanel1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
string argument = (e.Argument);
String[] stringArray = argument.Split(",".ToCharArray());
}