各位高手,enableViewStateMac有何作用?
RT 问题点数:20、回复次数:3Top
1 楼saucer(思归)回复于 2004-04-03 22:17:31 得分 20
from MSDN documentation
EnableViewStateMac
Indicates that ASP.NET should run a machine authentication check (MAC) on the page's view state when the page is posted back from the client. true if view state should be MAC checked; otherwise, false. The default is false.
Note A view state MAC is an encrypted version the hidden variable that a page's view state is persisted to when sent to the browser. When you set this attribute to true, the encrypted view state is checked to verify that it has not been tampered with on the client.
Top
2 楼saucer(思归)回复于 2004-04-03 22:18:47 得分 0
actually, I think the documentation is wrong, "The default is true"Top
3 楼Gorgee(凭阑悄悄)回复于 2004-04-03 22:35:12 得分 0
多谢死鬼大哥,我的.net中默认是false!Top




