If you can access the page, you can use the ViewStateUserKey property of the page. Here is an example of how to do this from inside the page, but you get the idea:
protected void Page_Init(object sender, EventArgs e)
{
if (!this.Page.EnableViewStateMac)
{
throw new InvalidOperationException(
"The page does NOT have the MAC enabled and the view" +
"state is therefore vulnerable to tampering.");
}
this.ViewStateUserKey = this.Session.SessionID;
}
ViewStateUserKey , . .