Click here to Skip to main content
15,917,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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,

HTML
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
Updated 23-Sep-12 23:46pm
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900