?
Solved

VerifyRenderingInServerForm override with a UserControl derived page

Posted on 2008-11-19
2
Medium Priority
?
6,743 Views
Last Modified: 2012-06-21
Hi Experts,

I have inherited a web site to fix, so I can't change too much of it. I have to add an ability to export the gridview to excel. I have to override VerifyRenderingInServerForm in order to make this work (or do you have a better solution to this: http://aspalliance.com/771) but I'm getting the error:

'WebControl_EditAccountLogic.VerifyRenderingInServerForm(System.Web.UI.Control)': no suitable method found to override

The page derives System.Web.UI.UserControl, and I suspect this should be System.Web.UI.Page in order to override VerifyRenderingInServerForm.. Is that correct?

If that's the case, then how do I make this export to excel functionality work on this page? (Code attached)

Thank you! As ever super duper urgent. :)

rss2

exporttoexcel.txt
0
Comment
Question by:rss2
2 Comments
 
LVL 15

Accepted Solution

by:
NazoUK earned 2000 total points
ID: 23005397
Can't you just override VerifyRenderingInServerForm in the page that hosts the user control?
0
 

Expert Comment

by:Hashmath
ID: 34375637
Hi ,

I too have the same issue with form tag. I have a custom webpart ( Visual Webaprt, its an .ascx file) that has a grid and a tree view. Now on click of an image button I need to export the contents of a grid to excel.
I am not able to override the method VerifyRenderingInServerForm because I am using a Visual webpart in sharepoint 2010. I am not able to find the codebehind of the webpage that is holding this webpart.

Can you please help me in this. I have been trying to do that from hours.

Greetings,
Sameena
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month16 days, 8 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question