Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Matt Schwartz
 
Posts: n/a
Default Save As Authentication Issue From ASP.NET

I have a ASP.NET web application written using VB.NET. I have a data
grid, that is sent to the browser as an excel document using the
following code

Private Sub CreateXLS(ByVal xdatagrid As DataGrid)
Response.Clear()
Response.AddHeader("content-disposition",
"filename=New_Report.xls")
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.No Cache)
Response.ContentType = "application/vnd.ms-excel"
Dim stringWrite As System.IO.StringWriter = New
System.IO.StringWriter
Dim htmlWrite As System.Web.UI.HtmlTextWriter = New
HtmlTextWriter(stringWrite)
xdatagrid.RenderControl(htmlWrite)
Response.Write(stringWrite.ToString)
Response.End()
End Sub


When this function is run, the user is prompted and asked whether they
want to save or open the file. Saving works properly - saving the file
directly to their local hard drive, and opening works properly - opening
the spreadsheet in the browser.

However, when a user first opens the file in the browser, then tries to
do a "save as" to save the file locally, they are prompted with a dialog
box asking for authentication. If they cancel, the dialog box disappears
and they are unable to save. The server that this is hosted on is
Windows 2003 Server Standard edition. Users are using Excel 2003.

How can I get rid of this authentication prompt?

Any help is greatly appreciated!

Sincerely,
Matt Schwartz
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UserForm Save Issue DarnTootn Excel Worksheet Functions 0 May 11th 06 05:15 PM
macro save a workbook whilst increasing file no shrek Excel Worksheet Functions 0 November 10th 05 02:40 PM
Save as Msg box monster Excel Discussion (Misc queries) 3 August 31st 05 06:45 PM
Save as Msg box Bob Umlas, Excel MVP Excel Discussion (Misc queries) 0 August 29th 05 09:56 PM
Save & Save As features in file menu of Excel Blue Excel Discussion (Misc queries) 9 December 27th 04 08:49 PM


All times are GMT +1. The time now is 03:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"