TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
armando.guiso
NA
1
0
Export DataGrid to Excel
Sep 29 2004 6:39 AM
I have this code to export DataGrid to Excel: Response.Clear() Response.Buffer = True Response.ContentType = "application/vnd.ms-excel" Response.Charset = "" Me.EnableViewState = False Dim datiExcel As String Dim SW As System.IO.StringWriter = New System.IO.StringWriter() Dim HTW As System.Web.UI.HtmlTextWriter = New System.Web.UI.HtmlTextWriter(SW) DataGrid1.RenderControl(HTW) Response.Write(SW.ToString()) Response.End() This code works well but how is possible to export in a new window different from the page of datagrid? Thanks
Reply
Answers (
0
)
datagrid cell color change based on datetime
adding text to drop down list