I have a function like
$(function donutchartcreation(numbers) {
alert(numbers[1]);
}
I tried to call this function from asp.net codebehind pageload as
int[] numbers = { 27, 20, 30 };
string serializedNumbers = (new JavaScriptSerializer()).Serialize(numbers);
System.Web.UI.ScriptManager.RegisterStartupScript(this, this.GetType(), "donutchartcreation", "donutchartcreation( " + serializedNumbers + ");", true);
Here number[1] can not be identified.. Can you plz help me to find the reason?