ASP.NET - How to Read and do changes in HtmlTextWriter

Asked By Tejaswini Prashant J on 01-Mar-13 12:37 AM

n an ASP.NET site, I am rendering a GridView control to export it's details in a excel file

Response.ContentType = "application/"
Response.AppendHeader("Content-Type", "application/")
Dim stringWrite As System.IO.StringWriter = New System.IO.StringWriter
Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite)

Now, it's getting rendered,but the gridview uses few images to beautify the data. While exporting the data I don't want to show images in excel. Can anybody tell me how I can do that?