|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Using Gridview To Export Data To Excel Error (ASP.NET 2.0)format. However in a perfectly valid page i get the error: Control 'ctl00_ContentPlaceHolder1_GridView1' of type 'GridView' must be placed inside a form tag with runat=server. VB.NET: Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter) Dim cReport As New SBL.cSSReport Dim LevelID() As Integer = {0} Dim dt As DataTable = cReport.Execute(SBL.ReportType.Offline.AllFields, Session("Username"), Session("DateFrom"), Session("DateTo"), LevelID, SnapshotBusinessLayer.Globals.gOrgLevel.Company).Tables(0) 'Response.ContentType = "application/ms-excel" 'Response.AddHeader("Content-Disposition", "inline;filename=test.xls") GridView1.DataSource = dt GridView1.DataBind() GridView1.RenderControl(writer) End Sub Any help which can be provided would be very much appreciated Thanks, Matt
objectdataSource case sensitive with parameters??
label overlap during design Don't understand state in WebControls class Page CallBack ICallbackEventHandler Issue getting value from dynamically creating datagrid boundcolumn Gridviews together with Database with join dynamically set property on a control Doubts in maintaining Session Variables Plz help Dirty property value persist problem |
|||||||||||||||||||||||