在文本框EnableViewState属性 [英] EnableViewState property in textbox

查看:95
本文介绍了在文本框EnableViewState属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我请,我们如何使用文本框的EnableViewState属性在asp.net中。
通过使它或真或假,我们怎么能感受到结果的差异。

Can anybody tell me please that how can we use the enableviewstate property of textbox in asp.net. By making it false or true how can we feel a difference in result.

推荐答案

默认情况下,ASP.NET具有的EnableViewState设置为true,这就是为什么当你做一个回传,值被保留在文本框。

By default, ASP.NET has EnableViewState set to true, this is why when you do a Postback, the values are retained in the TextBoxes.

如果您将它设置为false,并做了回传, KA-热潮!该值不再有:)

If you set it to false, and do a Postback, ka-boom! The value is no longer there :)

这篇关于在文本框EnableViewState属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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