G
Guest
Hi,
I have follwing code. this code is work sometimes and some time doesnot work.
There is no error mesg and many times only one instance is allowed.
does any one faced this problem ?
Kishor
Response.Clear()
Response.ClearContent()
Response.ClearHeaders()
Response.Buffer = True
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim oStringWriter As New System.IO.StringWriter
Dim oHtmlTextWriter As New System.Web.UI.HtmlTextWriter(oStringWriter)
dg.RenderControl(oHtmlTextWriter)
Response.Write(oStringWriter.ToString())
Response.Flush()
Response.Close()
Response.End()
I have follwing code. this code is work sometimes and some time doesnot work.
There is no error mesg and many times only one instance is allowed.
does any one faced this problem ?
Kishor
Response.Clear()
Response.ClearContent()
Response.ClearHeaders()
Response.Buffer = True
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim oStringWriter As New System.IO.StringWriter
Dim oHtmlTextWriter As New System.Web.UI.HtmlTextWriter(oStringWriter)
dg.RenderControl(oHtmlTextWriter)
Response.Write(oStringWriter.ToString())
Response.Flush()
Response.Close()
Response.End()