Home > php教程 > php手册 > body text

C#viewstate

WBOY
Release: 2016-07-06 13:30:19
Original
1149 people have browsed it

Viewstate 处理不是form中可以传值的标签 进行传值. 可以禁用元素的viewstate 也可以禁用页面的 Enableviewstate=false;(在配置区域写) 内网系统,互联网后台可以尽情的用viewstate EnableViewState="false" //禁用viewstate Response.Write("Label1的?值是?:

Viewstate 处理不是form中可以传值的标签 进行传值.
可以禁用元素的viewstate 也可以禁用页面的
Enableviewstate=”false”;(在配置区域写)
内网系统,互联网后台可以尽情的用viewstate
EnableViewState="false" //禁用viewstate
Response.Write("Label1的?值μ是?:" + Label1.Text + "
"); //第二次输出label
Label1.Text = "100";
Response.Write("Label1的?值μ是?:" + Label1.Text + "
");//第二次输出100

每个控件都有EnableViewState属性


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template