Prepare for your Next Interview
This is a discussion on What is the use of Viewstatemac? within the ASP.NET forums, part of the Web Development category; What is the use of Viewstatemac.. What will happen if I set the value to True...
|
|||
|
Re: What is the use of Viewstatemac?
Quote:
Basically it is used to check if user has changed (tempered) the viewState and making request. If we will set EnableViewStateMac to True then, the encoded and encrypted view state is checked to verify that it has not been tampered with on the client. You can find more information at MSDN ViewStateMac Property ---V V--- Vikas Vaidya Please mark this post with Thanks if u found the answer useful |
|
|||
|
Re: What is the use of Viewstatemac?
Hello,
A view state MAC is an encoded version of the hidden variable that a page's view state is persisted to when sent to the browser. When you set the EnableViewStateMac attribute to true, the encoded and encrypted view state is checked to verify that it has not been tampered with on the client. It is recommended to set the EnableViewStateMac attribute to true using the @ Page directive in the .aspx file. I hope this information is enough for you. |