如何从.aspx页面中的Page Behind Code(.cs文件)访问数组变量 [英] How to access a array Variable from Page Behind Code(.cs file) in .aspx page

查看:66
本文介绍了如何从.aspx页面中的Page Behind Code(.cs文件)访问数组变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试在aspx页面的java脚本函数中使用位于代码页面(.cs文件)中的数组。这样我就可以禁用该数组中的所有日期。怎么可能。



谢谢

Hi,
I'm trying to use a array which is in page behind code(.cs file) in a java script function which is in aspx page. so that I can disable all the dates in that array. How is it possible.

Thankyou

推荐答案

使用hiddenfield并存储用','格式化的值分隔字符串并使用cs文件将其存储在hiddenfield中...然后使用javascript函数获取此值,从','分隔并禁用aspx页面中的所有日期....
use hiddenfield and store the values formated with ',' seprated string and store it in hiddenfield using cs file... and then using javascript function get this values,seprate from ',' and disable all dates in aspx page....


这篇关于如何从.aspx页面中的Page Behind Code(.cs文件)访问数组变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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