Link to home
Start Free TrialLog in
Avatar of amiteshanand
amiteshanandFlag for India

asked on

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?
Avatar of James Murrell
James Murrell
Flag of United Kingdom of Great Britain and Northern Ireland image

In master page,  change the "Enable View State" of content place holder to true.
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
Avatar of amiteshanand
amiteshanand
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
cool glad all OK
Avatar of fareeth76
fareeth76

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