Hi
I was getting this error, while converting gridview data to Excel and word format.
RegisterForEventValidation can only be called during Render();
Then I made EnableEventValidation=”false” in page directive.Then it starts to work
Hi
I was getting this error, while converting gridview data to Excel and word format.
RegisterForEventValidation can only be called during Render();
Then I made EnableEventValidation=”false” in page directive.Then it starts to work
Does not work in case. I added this in the Page directive of the main page. I have a user control that has the gridview and a button that exports it to excel. i cannot add it to the User control as it does not have this property. So i added it to the main page directive. But does not do anything. Any suggestions?
Hi,
Please give me some time. I donot have checked on that case.
Money, I also had this issue in UserControl (that does not have EnableEventValidation property).
Removing “asp:HiddenField” from the UserControl, solved the problem.
I don’t know why, but it just worked for me.