开发者

Change default value of EnableViewState

开发者 https://www.devze.com 2022-12-13 11:30 出处:网络
I know that with other properties you can define their default value by using skins. But for some reason they won\'t let me do this for EnableViewState.

I know that with other properties you can define their default value by using skins. But for some reason they won't let me do this for EnableViewState.

I don't want EVERYTHING set to EnableViewState="false" I just want them to default to false then if I want them to I can go through and enable them manually.

The cleaner the solution the better. I'm hoping to shy away from running some obtrusive function in pageload that disables all viewstates as it's recursive nature could be expensive and in 开发者_如何学JAVAmy head it feel obtrusive.


This is not possible with current version of asp.net, but the new one will from what I remember work exactly like that. Here is a link: http://www.asp.net/LEARN/whitepapers/aspnet4/default.aspx#_TOC3_2

0

精彩评论

暂无评论...
验证码 换一张
取 消