![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | in vb.net how to open a file from file download prompt without askinguser to save it or run it....just open it in internet explorer I am designing a VB.NET based website I have a hyperlink, upon clicking on it a "File Download" prompt opens which asks me whether I want to "Save" the file, "Open" But I want it to directly open in Internet Explorer without showing the prompt.... How can i do this? It should not show any prompt... when i click on the hyperlink....it should directly open in a new IE window.... Thanks.... |
My System Specs![]() |
| | #2 (permalink) |
| | Re: in vb.net how to open a file from file download prompt withoutasking user to save it or run it....just open it in internet explorer What is the file? You might be able to use the content-disposition: inline header, along with the content-type header (to tell it how to open it) to do this, but IE will only trust certain recognised files - it won't simply open an exe / .vbs / etc. Marc |
My System Specs![]() |
| | #3 (permalink) |
| | Re: in vb.net how to open a file from file download prompt withoutasking user to save it or run it....just open it in internet explorer Thank you very much Marc for your reply. I want to open Excel file in new Internet Explorer and it should open without asking user to save it as well as this should be non-editable. Will you please give some runnable code in detauil and the steps needed to follow? Thank you very much! Kaustubh |
My System Specs![]() |
| | #4 (permalink) |
| | Re: in vb.net how to open a file from file download prompt withoutasking user to save it or run it....just open it in internet explorer On Jun 23, 2:52*pm, Kaustubh Budukh <kaustubh.bud...@xxxxxx> wrote: Quote: > Thank you very much Marc for your reply. > > I want to open Excel file in new Internet Explorer and it should open > without asking user to save it as well as this should be non-editable. > > Will you please give some runnable code in detauil and the steps > needed to follow? > > Thank you very much! > > Kaustubh when the hyperlink is clicked, note that I am not using the link button.I heard that Content Disposition can be used for the Link Button only and not for the hyperlink. So please clarify my doubts. Thanks! |
My System Specs![]() |
| | #5 (permalink) |
| | Re: in vb.net how to open a file from file download prompt withoutasking user to save it or run it....just open it in internet explorer Content-Disposition is a response header issued by the server and interpreted by the client. It doesn't care much what the request is. Marc |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Internet Explorer Save/Open Function | Browsers & Mail | |||
| File Open or File Save dialogs crash programs | Vista General | |||
| Delays: Windows Explorer and File Open/Save Dialogs | Vista performance & maintenance | |||
| Open file/ Save file window | Vista mail | |||
| File Open and File Save As Dialog Freeze and Hang All Applications | Vista file management | |||