Administrator wants to make a security check that no one has tampered with the “ViewState”, how can he ensure this?


Microsoft has provided the administrator with two mechanisms for increasing the security of ViewState, which are as follows:
  1. Machine Authentication Check (MAC)
    This is done at the page level where in the page directive we need to add the following:

  2. Encrypting the ViewState
    This is done at the machine level in the machine.config file. In the tag <machineKey" the property "validation" needs to be set to "3DES".

Comments

Popular posts from this blog

jQuery Basics

What is the difference between a Page Layout and Master Page in SharePoint?

Accessing data from SharePoint 2010 to an ASP.NET application