User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 391,710 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,406 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 15660 | Replies: 6
Reply
Join Date: Jan 2006
Posts: 2
Reputation: elblazzy4chizzy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
elblazzy4chizzy elblazzy4chizzy is offline Offline
Newbie Poster

File Download Dialog Box(ASP)

  #1  
Jan 25th, 2006
I have a ASP Page that allow the users to Download a File @ the Click of the button the File Download Dialog Box will pop up on the Scream ,on the download dialog Box are 4 buttons namely Open ,Save,Cancel and More Info :mrgreen: ,How do I disable any Button on the Dialog box let say the Save button?????? :mrgreen:
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2004
Location: Springfield, Oregon
Posts: 119
Reputation: Drew is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 6
Drew's Avatar
Drew Drew is offline Offline
Junior Poster

Re: File Download Dialog Box(ASP)

  #2  
Jan 25th, 2006
You can not disable the boxes. They are part of the browser and there is nothing you can do to disable them.

No code in the world can disable them.
Drew Gauderman
ASP / MSSQL Coder
http://www.iportalx.net - My ASP Portal
Reply With Quote  
Join Date: May 2006
Posts: 2
Reputation: CrunchyFrog is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
CrunchyFrog CrunchyFrog is offline Offline
Newbie Poster

Re: File Download Dialog Box(ASP)

  #3  
May 8th, 2006
Two comments.

First, I haven't seen the "More" button you mention (running IE 7, XP Professional SP2).

Second, scouring the Web brought me no idea of how to control the buttons individually.

However, regarding Open, I noticed that a client OS that was not configured to recognize the file type being downloaded would not know which environment to open, and therefore would not display the "Open" button--for example, the client displayed the download-file name in the File Download Box but Windows did not seem to recognize .doc files, therefore Windows didn't open the file in Word and did not display the Open button, only Save and Cancel.

Also, I did find some C# code that purported to suppress the Open. VB.NET seemed to recognize the code without changes except dropping the final semicolon. It didn't do the job in my app that the author claimed it did in his, but here's the code:

Response.Cache.SetCacheability (HttpCacheability.NoCache);
Reply With Quote  
Join Date: May 2006
Posts: 2
Reputation: CrunchyFrog is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
CrunchyFrog CrunchyFrog is offline Offline
Newbie Poster

Re: File Download Dialog Box(ASP)

  #4  
May 9th, 2006
So, to second what Drew said--there's no way to control the buttons individually. But there's the exception that Open will appear, or not appear, depending on whether the browser recognizes your file type.
Reply With Quote  
Join Date: May 2006
Posts: 1
Reputation: sakshi006 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sakshi006 sakshi006 is offline Offline
Newbie Poster

Re: File Download Dialog Box(ASP)

  #5  
May 23rd, 2006
Hi
Can you please give me the codes of the "download Dialogue box' I need to put in on my page so that the user can download a pdf file.
Reply With Quote  
Join Date: Apr 2008
Posts: 1
Reputation: BraidedRainbows is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
BraidedRainbows BraidedRainbows is offline Offline
Newbie Poster

Re: File Download Dialog Box(ASP)

  #6  
Apr 27th, 2008
Hi there,
I too am looking for the codes of the download dialog box. Did you get a reply or and answer?
Reply With Quote  
Join Date: May 2008
Posts: 3
Reputation: hiralmehta is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
hiralmehta hiralmehta is offline Offline
Newbie Poster

Re: File Download Dialog Box(ASP)

  #7  
May 26th, 2008
i am too looking for the code for file downloading dialog box asp.net using vb.
if any one could help me with it.
thank you
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 3:07 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC