0

I need a JavaScript function which will take the ASP.NET Repeater as input. The function must then parse through the object and return the data in the rows of the object as JSON.

Then, I can send the JSON back to the server to be interpreted/parsed and saved to the DB.

4

1 回答 1

0

您最好的选择可能是遍历由 呈现的元素Repeater并将值收集到一个 javascript 对象中。当您拥有它时,您可以使用 json2stringify()或 jqueryserialize()或类似的东西来生成 json 表示。

于 2010-10-27T20:49:28.573 回答