tag:blogger.com,1999:blog-25545748.post2690953266751193501..comments2023-10-06T06:22:16.978-04:00Comments on Mostafa's Blog: Export Data List to ExcelAnonymoushttp://www.blogger.com/profile/04369573110626236922noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-25545748.post-5870219097584282892009-08-25T11:17:03.280-04:002009-08-25T11:17:03.280-04:00I encountered that error and found that it is cure...I encountered that error and found that it is cured by overriding the method <br /> public override void VerifyRenderingInServerForm(Control control)<br /> {<br /> }<br /><br />We are using a custome Page class, so this override could be placed there. If you're not, then do some searching to find an alternative, but this is probably your root problem.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-25545748.post-48354794002348744162009-07-01T14:55:44.699-04:002009-07-01T14:55:44.699-04:00do you have MS excel installed in your client mach...do you have MS excel installed in your client machine ? which version ?Anonymoushttps://www.blogger.com/profile/04369573110626236922noreply@blogger.comtag:blogger.com,1999:blog-25545748.post-52411650800087573482009-07-01T03:05:51.075-04:002009-07-01T03:05:51.075-04:00it will give you error like this while working wit...it will give you error like this while working with master page<br />'ctl00_CntFormContents_DataList1_ctl01_gvTopFiveMasterIntroducer' of type 'GridView' must be placed inside a form tag with runat=serverjinalshahhttps://www.blogger.com/profile/06905245427906256562noreply@blogger.comtag:blogger.com,1999:blog-25545748.post-72423381402219003192007-11-29T00:30:00.000-05:002007-11-29T00:30:00.000-05:00You can fnd the datagrid by using DataList.FindCon...You can fnd the datagrid by using DataList.FindControl(); to get a datagrid object.<BR/><BR/>try without clear controls function and let me know ?Anonymoushttps://www.blogger.com/profile/04369573110626236922noreply@blogger.comtag:blogger.com,1999:blog-25545748.post-11733690048116712022007-11-28T03:01:00.000-05:002007-11-28T03:01:00.000-05:00this.ClearControls(DataGridView);Please supply cod...this.ClearControls(DataGridView);<BR/>Please supply code for ClearControls(..)<BR/><BR/>DataGridView.RenderControl(oHtmlTextWriter);<BR/>I cannot reference datagridview directly because it exists in the datalist control.<BR/><BR/>ThanxAnonymousnoreply@blogger.com