让你的视图页面更简洁,我经常听见抱怨说,在使用默认的视图引擎时,页面中总是存在类似于页面声明(page directive)这样烦人的东西。实际上很大程度上这些东西也是可以定制的。
基于16个网页-相关网页
the page directive 网页指令
A mechanism to expose page directive attributes to the scripting environment.
用于将页指令属性公开给脚本环境的机制。
Therefore, when you choose to preserve the form and query string collection of the original page, you must set the EnableViewStateMac attribute of the page directive to False for the destination page.
因此,如果要保留原始页面的表单数据和查询字符串集合,必须把目标页面page指令的EnableViewStateMac属性设置成False。
You typically set a value for this property in the page directive or by overriding the property.
通常在页面指令中或通过重写属性设置此属性的值。
应用推荐