<p>During a discussion about security, a developer on my team asked if there was a way to tell if viewstate has been tampered with. I'm embarrassed to say that I didnt know the answer. I told him I would find out, but thought I would give someone on here a chance to answer first. I know there is some automatic validation, but is there a way to do it manually if event validation is not enabled?</p>

[{'answer_id': 68769, 'author': 'user9991', 'author_id': 9991, 'author_profile': 'https://Stackoverflow.com/users/9991', 'pm_score': 4, 'selected': True, 'text': '<p>EnableViewStateMac page directive</p>\n'}, {'answer_id': 68806, 'author': 'Eric Z Beard', 'author_id': 1219, 'author_profile': 'https://Stackoverflow.com/users/1219', 'pm_score': 0, 'selected': False, 'text': "<p>You might be able to do it manually, but you'd just be implementing the same algorithm that's already there for you.  It's generally a bad idea to disable the ViewState validation on a page.</p>\n"}, {'answer_id': 68859, 'author': 'Steven A. Lowe', 'author_id': 9345, 'author_profile': 'https://Stackoverflow.com/users/9345', 'pm_score': 2, 'selected': False, 'text': '<p>ViewState by default is MIME encoded and hashed with a MAC key (either from the machine or from the web.config file), which helps prevent tampering (i.e. decoding blows up). You can also encrypt and compress ViewState if you like for further protection and less overhead, respectively. See <a href="http://msdn.microsoft.com/en-us/library/bb386448.aspx#SecuringViewState" rel="nofollow noreferrer">MS ViewState</a> and <a href="http://www.codeproject.com/KB/viewstate/ViewStateCompression.aspx" rel="nofollow noreferrer">CodeProject.com</a></p>\n'}]
['https://Stackoverflow.com/questions/68764', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5469/']