If viewstate is tampered by an attacker in middle, how do you recognize it?
"EnableViewStateMac" property can be used to recognize viewstate tampering. When this property is ON, Viewstate will be encrypted along with MAC address of machine. When the page postback, it will validate the viewstate by using same MAC address. If viewstate is tampered by any one, it fails and it throws exception
ASP.NET Interview questions · · · ·