Click here to Skip to main content
15,910,121 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a form in a page like so
<form id="form1"  runat="server" action="showbranddata.aspx" method="post" >
   <input type="hidden" name="hdata" id="hdData"/>
   <input type="submit" name="Submit" value="submit" />
</form>

the page has enableviewstate=false,enableeventvalidation=false
now in showbranddata.aspx i have a div with id dv1
i just want to see the post query so i use
dv1.innerhtml=Request.QueryString["hdata"];

my problem is dv1 does not contqain anything

any suggestions
Posted
Comments
tihcra 31-May-11 13:05pm    
when i try to press submit button i get the following error was i navigate to another page
"Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machinekey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster."
plz suggest for this too .
Thanks in adv
tihcra 31-May-11 13:06pm    
i am just debugging an application, i dont use a webfarm or cluster

1 solution

 
Share this answer
 
Comments
tihcra 31-May-11 23:13pm    
how to remove the view state completely. i do not need viewstate for my page at all
aidin Tajadod 1-Jun-11 16:05pm    
Look at this http://forums.asp.net/t/1549686.aspx/1
it might be useful

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900