How can you detect if a viewstate has been tampered?
protected void Page_Load(object sender, EventArgs e){ if (ViewStateUserKey != Session.SessionID) { // The viewstate has been tampered with }}
protected void Page_Load(object sender, EventArgs e)
{
if (ViewStateUserKey != Session.SessionID)
// The viewstate has been tampered with
}