获取使用JQuery从视图状态的值? [英] Getting values from viewstate using JQuery?

查看:166
本文介绍了获取使用JQuery从视图状态的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能得到一个特定的值了使用JQuery视图状态......

Is it possible to get a particular value out of viewstate using JQuery....

我工作的一个自定义控件。它使用jQuery,嵌入到控件本身在文本框中操纵值...我需要实现一个最小值和最大值...属性都设置在控制,并存储在ViewState中......相反使用隐藏输入字段,我宁愿只是拉出来的信息视图状态,并用这种方式....这是在所有可能的?

I'm working on a custom control. It uses jquery, embedded into the control itself to manipulate the value in a text box... I need to implement a minimum and maximum values... the properties are set up in the control, and are stored in viewstate... Instead of using hidden input fields, i'd much rather just pull the info out of viewstate and use it that way.... is it at all possible?

感谢

推荐答案

您也可以输出最大和最小的(如果你想保留XHTML有效性,甚至他们命名空间)文本框自定义属性;那么你引用它们为 $ thebox.attr('分') $ thebox.attr('最大')或类似的。

You could also output the min and max as custom attributes of the textbox (and even namespace them if you want to retain xhtml validity); then you'd reference them as $thebox.attr('min') and $thebox.attr('max') or similar.

这篇关于获取使用JQuery从视图状态的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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