Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validation of viewstate MAC failed

Status
Not open for further replies.

T111

Programmer
Jun 28, 2003
91
0
0
IE
I have a webpage with a filter invoked by a javascript function -
Code:
<script type="text/javascript">
<!--
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>
And here is the code when the filter is invoked -
Code:
</select> <br />
            <select name="ddOffice" onchange="javascript:setTimeout('__doPostBack(\'ddOffice\',\'\')', 0)" id="ddOffice" style="font-weight:bold;width:152px;">
	<option selected="selected" value="%%">Department</option>
	<option value="Sales">Sales</option>
	<option value="Technical">Technical</option>

</select>
Anyone know how to solve this, I added
Code:
<pages enableViewStateMac="false" viewStateEncryptionMode ="Never">
to the webconfig and added
Code:
<meta http-equiv="imagetoolbar" content="RevealTrans(Duration=0,Transition=0)" />
to the top of the page but still no luck.

Any help appreciated,
T111!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top