Windows Security
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsSystem AdministrationWindows Security

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old August 23rd, 2007, 08:49 AM
koraykazgan koraykazgan is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 6 koraykazgan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 9 sec
Reputation Power: 0
Browser Security - Difference when downloading...

Hi all,

I have written an ASP.Net 2.0 Web Application. I am using WinXP Pro SP 2 and have IIS 5.1 on my system, where the Application is developed.

After finishing implementation I have installed the app on an Win2003 Server with IIS 6 running.

In one of my pages I have a button, when clicked, I am sending a file to the client, so the SaveAs dialog pops up and the user can download the sent file.

This is the code I wrote to send the file to the user:

Code: ( text )
page.Response.AppendHeader("Content-Type", "application/msword");
page.Response.AppendHeader("Content-disposition", "attachment; filename="aaa.doc");
page.Response.Charset = "";

page.Response.Write(FileContent);
page.Response.End();


When I call the application on the test system (W2k3/IIS6), the internet explorer information bar popps up, asking if the download should really started. But with the same browser, when I start the download on the WinXP/IIS5 system, no confirmation is made.

I have tested this with different browsers and from different computers in different networks. The only thing I saw was that it asks for confirm on Win2K3/IIS6 and on WinXP/IIS5.1 it won't.

So I don't know if this is a programming issue or a server configuration issue.
But I hope that you can help me with my problem, and tell me what the difference between the two is.

Thanks for help,
Regards...

Reply With Quote
  #2  
Old August 23rd, 2007, 08:57 AM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
The Drunken Moderator
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2004
Location: Reston, VA, USA
Posts: 13,038 jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate Folder
Time spent in forums: 3 Months 5 Days 15 h 46 sec
Reputation Power: 1563
Facebook
--> Moved to Windows Security forum

Sounds to me like an IE configuration setting. Check the security settings on each of the IE browsers you are using to determine this.
__________________
jmurrayhead

Did I help you out? Make me popular by clicking the icon!

New Members:Proper way to post a question

Powered by ASP.Net

Reply With Quote
  #3  
Old August 23rd, 2007, 09:18 AM
koraykazgan koraykazgan is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 6 koraykazgan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 9 sec
Reputation Power: 0
I don't think so...

Quote:
Originally Posted by jmurrayhead
--> Moved to Windows Security forum

Sounds to me like an IE configuration setting. Check the security settings on each of the IE browsers you are using to determine this.


With each different browser I tried to use both applications (the one in W2K3 and the other in WinXP). When doing so, I realised that the same browser asks for confirmation for the one on W2K3, while for the the app on WinXP there is no confirmation.

This is the case on every browser (on IE's, Firefox doesn't ask anything...). So I know that it is not a browser setting.

Reply With Quote
  #4  
Old August 23rd, 2007, 09:56 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,642 Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)  Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 4 Days 16 h 33 sec
Reputation Power: 1471

Reply With Quote
  #5  
Old August 27th, 2007, 02:16 AM
koraykazgan koraykazgan is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 6 koraykazgan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 9 sec
Reputation Power: 0
Quote:
Originally Posted by Shadow Wizard


Hi again,

I have the file in memory. It is a xhtml string. So I am just using Response.Write to send it to the client. I don't want to create the file on disk before I am able to send it. I am recieving that file from a web service. So I just want to send it directly from memory.

And when I do so, in IIS6 the browser asks for confirmation, but in IIS5 the same browser don't.

Hope this will help you understand the problem,
Koray

Reply With Quote
  #6  
Old August 27th, 2007, 02:45 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,642 Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)  Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 4 Days 16 h 33 sec
Reputation Power: 1471
xhtml string is not Word Document.
remove this line:
Code:
page.Response.AppendHeader("Content-Type", "application/msword");

and give different extension to the file, for example aaa.txt will be fine.

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows Security > Browser Security - Difference when downloading...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway