如何将参数从ASP.NET传递到Jquery

问题描述:

获取多个记录后,如何将值传递给jquery语句?

After fetching several records, how can pass the values to jquery sentence?

您可以返回serialzed json:

You can return serialzed json:

System.Web.Script.Serialization.JavaScriptSerializer js = new System.Web.Script.Serialization.JavaScriptSerializer();
               json = js.Serialize(parms);





您可以只使用



OR

you can just use

Response.Write("somedata");



一切都取决于它回到AJAX时的使用方式.



It all depends on how you are using it when it gets back into AJAX.