![Avatar of amiteshanand](https://filedb.experts-exchange.com/files/public/2013/11/18/77d4cb82-8a22-49b2-a6df-55cc9d38827c.png)
Report viewer Control error
I'm trying to put a report on an aspx page using report viewer control, however it gives the error:
ASP.NET ViewState has been disabled. The Report Viewer control requires that ViewState be enabled.
I've made sure the enableviewstate property is set to true already. Also, I saw a few posts on this same problem, where it was resolved by putting the report inside <form> tags, and I tried this as well with the same result. Any ideas?
ASP.NET ViewState has been disabled. The Report Viewer control requires that ViewState be enabled.
I've made sure the enableviewstate property is set to true already. Also, I saw a few posts on this same problem, where it was resolved by putting the report inside <form> tags, and I tried this as well with the same result. Any ideas?
![Avatar of James Murrell](https://filedb.experts-exchange.com/files/public/2023/10/8/9af4eb79-354f-4b0d-a2ea-c85e64ba6ded.png)
In master page, change the "Enable View State" of content place holder to true.
![Avatar of James Murrell](https://filedb.experts-exchange.com/files/public/2023/10/8/9af4eb79-354f-4b0d-a2ea-c85e64ba6ded.png)
also Can you confirm that viewstate is enabled in your web.config file (http://msdn2.microsoft.com/en-us/library/950xf363.aspx) and that it is enabled on your master page in the Page tag?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
![Avatar of James Murrell](https://filedb.experts-exchange.com/files/public/2023/10/8/9af4eb79-354f-4b0d-a2ea-c85e64ba6ded.png)
cool glad all OK
![Avatar of fareeth76](https://filedb.experts-exchange.com/files/public/2013/11/18/02039248-1d6f-4c1c-8508-cce8086c3ba2.png)
Me.MyControl.RenderControl (htw)
reportviewer control is under the div tag MyControl and it's runat proprty is set to server, i am still getting view state disabled for report viewer message
reportviewer control is under the div tag MyControl and it's runat proprty is set to server, i am still getting view state disabled for report viewer message