Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
exporting excel in asp.net
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="theheathergirl, post: 1923363"] I have a page that has a button and it exports fine on the laptop but when I drop it on the server and hit it from a client machine on the LAN (https) it gives me an explorer error that it cannot download the page... The server has some certificates needs that my laptop does not, not sure if that is it. Any help would be awesome. code below: Protected Sub btnExcel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExcel.Click Dim stringWrite Dim htmlWrite Response.Clear() Response.AddHeader("content-disposition", "inline;filename=EPRTracker.xls") Response.Charset = "" Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.ContentType = "application/vnd.xls" stringWrite = New System.IO.StringWriter() htmlWrite = New HtmlTextWriter(stringWrite) Dim grdNew As New GridView() 'grdNew.AutoGenerateColumns = True grdNew.DataSource = EPRTrackerLibrary.EPRTrackerView.GetStaffMeetReportDR grdNew.DataBind() grdNew.RenderControl(htmlWrite) Response.Write(stringWrite.ToString()) Response.End() End Sub [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
exporting excel in asp.net
Top