![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm downloading grid data to excel document using following code snippet: Response.Clear() Response.Buffer = True Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("content-disposition", "attachment;filename=CDSInfo.csv") Response.Charset = "" Me.EnableViewState = False Dim oStringWriter As New System.IO.StringWriter() Dim oHtmlTextWriter As New System.Web.UI.HtmlTextWriter(oStringWriter) Grid1.RenderControl(oHtmlTextWriter) Response.Write(oStringWriter.ToString()) Response.End() I'm getting everything OK except one problem. I have one column of varchar type which contains numeric values (00002321,009860 ..).The output result in |
|
Thanks, Ajay --- Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/ |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |