How do I export a Gridview Control to Excel in DotNetNuke?
问题 Is there an alternative to using this since using a <form runat="server"> will cause a 500 error. public override void VerifyRenderingInServerForm(Control control) { /* Verifies that the control is rendered */ } EDITED With the assistance from @HansDerks I ended up using the following(a jazzed up version of the solution provided.): protected void Export_Click(object sender, System.EventArgs e) { StringWriter writer = new StringWriter(); HtmlTextWriter htmlWriter = new HtmlTextWriter(writer);