VerifyRenderingInServerForm override with a UserControl derived page

Posted on 2008-11-19
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: 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. :)


Question by:rss2
    LVL 15

    Accepted Solution

    Can't you just override VerifyRenderingInServerForm in the page that hosts the user control?

    Expert Comment

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now