What does the EnableViewStateMac setting in an aspx page do?

What does the EnableViewStateMac setting in an aspx page do?

EnableViewStateMac setting is a security measure in ASP.Net. It ensures the view state for a page not to tamper. To to so “ EnableViewStateMac=true “is used. ASP.net detects the change in the value of view state sent to the browser when Postback action takes place and raises an error – “Validation of view state MAC failed”.

What does the EnableViewStateMac setting in an aspx page do?

- EnableViewStateMac is a security measure used by ASP.NET in order to ensure that the viewstate for a page has not been tampered with.

- ASP.NET raises an error (Validation of viewstate MAC failed) if it detects that there has been a change in the value of viewstate that was sent to the browser.
JavaScript - What are windows object and navigator object in JavaScript?
What are windows object and navigator object in JavaScript? - ....
How to detect the operating system on the client machine in JavaScript?
navigator.platform returns the platform on which the browser is running.
How to set a HTML document's background color in JavaScript?
How to set a HTML document's background color? - ...
Post your comment