Click here to Skip to main content
11,631,369 members (74,640 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
I am having a repeater in which i used one column as linkbutton.i used ballon popup extender also in the same repeater. when i am trying to export the repeater to excel i am getting the following error,

"Control 'gdvDataQualityReport_ctl01_BalloonPopupExtender1' of type 'BalloonPopupExtender' must be placed inside a form tag with runat=server."

gdvDataQualityReport is my Repeater name and BalloonPopupExtender1 is my balloonpopupextender name.

i used the following code for exporting data in repeater,

Response.Clear();
            Response.Buffer = true;
            Response.AddHeader("content-disposition","attachment;filename=DataAvailability.xls");
            Response.Charset = "";
            Response.ContentType = "application/vnd.ms-excel";
            System.IO.StringWriter stringWrite = new System.IO.StringWriter();
            System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
            gdvDataQualityReport.RenderControl(htmlWrite);
            gdvDataQualityReport.RenderControl(htmlWrite);
            Response.Write("<table>");
            Response.Write(stringWrite.ToString());
            Response.Write("</table>");
            Response.End(); 


Can anyone please help me in solving this?
Posted 23-Sep-12 23:45pm
Edited 23-Sep-12 23:46pm
(no name)4.1K
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


Advertise | Privacy | Mobile
Web02 | 2.8.150723.1 | Last Updated 24 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100