查看文本框和页面的状态属性,请查看整个问题 [英] View state property of the textbox and page please see the whole question

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

问题描述

我有两个文本框,其中视图状态属性为false,一个为true,并且有一个按钮。当我运行Web应用程序并在文本框中填写一些值并单击按钮时,它正在检索文本框的值,而它不应该作为其中一个文本具有属性false?请解释整个过程

解决方案

此行为适用于内部实现IPostBackDataHandler

接口的Web控件。



了解更多信息。参考



查看TextBox和其他实现IPostBackDataHandler的控件的状态 [ ^ ]



希望这会有所帮助...

I have two text box one with the view state property false and one is true and there is a button. When i run the web appln and fill some value in text box and click on button it is retrieveing the value of both the textbox whereas it shouldnt as one of the text has property false? please explain the whole process

解决方案

This behaviour is for the Web Controls which internally implements IPostBackDataHandler
interface.

To understand more on it. Refer

View State for TextBox and other controls that implement IPostBackDataHandler[^]

Hope this helps...


这篇关于查看文本框和页面的状态属性,请查看整个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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