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
pooja nirmalkar
NA
22
7.6k
unable to get div id from asp.net to vb.net code
Apr 11 2016 2:27 AM
Protected Sub btn_export_to_excel_Click(sender As Object, e As EventArgs)
StrExport.Append("<html xmlns='http://www.w3.org/1999/xhtml'>")
StrExport.Append("<body class='hold-transition skin-blue sidebar-mini'>")
StrExport.Append("<div class='box-body' id='dvData'>")
StrExport.Append(dvData.InnerHtml) //ERROR WHILE GETTING DIV ID
StrExport.Append("</div></body></html>")
Dim strFile As String = "StudentInformations_CODESCRATCHER.xls"
Dim strcontentType As String = "application/excel"
Response.ClearContent()
Response.ClearHeaders()
Response.BufferOutput = True
Response.ContentType = strcontentType
Response.AddHeader("Content-Disposition", Convert.ToString("attachment; filename=") & strFile)
Response.Write(StrExport.ToString())
Response.Flush()
Response.Close()
Response.[End]()
End Sub
Reply
Answers (
2
)
How To Get Browser Tab Title Name Using JavaScript
AngularJs - ng-include not working