如何将C#数组引入JavaScript [英] how to bring c# array to javascript

查看:70
本文介绍了如何将C#数组引入JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将(C#)后面的代码中的数组(a [i])带到javascript
有人请帮我

how to bring an array(a[i]) from code behind (C#) to javascript
someone plz help me out

推荐答案

你好,

您可以使用CodePlex上托管的 Json.NET 项目来实现此目的.

问候,
Prasad P. Khandekar
Hello,

You can use Json.NET project hosted on CodePlex to achieve this.

Regards,
Prasad P. Khandekar


请参阅此
http://stackoverflow.com/questions/3464498/pass- c-sharp-asp-net- [ ^ ]
http://stackoverflow.com/questions/5918302/dynamically- create-javascript-array-with-c-sharp-code-behind [ http://stackoverflow.com/questions/1091989/javascript-error-in-得到代码隐藏值 [ ^ ]
Refer this
http://stackoverflow.com/questions/3464498/pass-c-sharp-asp-net-[^]
http://stackoverflow.com/questions/5918302/dynamically-create-javascript-array-with-c-sharp-code-behind[^]
http://stackoverflow.com/questions/1091989/javascript-error-in-getting-code-behind-values[^]


尝试一下:

Try this:

var abc = document.getElementById('<% array[].ClientID; %>')



问候,
爱德华



Regards,
Eduard


这篇关于如何将C#数组引入JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆