Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - 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

Reply
 
Old 06-20-2008   #1 (permalink)
Kaustubh Budukh


 
 

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 SpecsSystem Spec
Old 06-20-2008   #2 (permalink)
Marc Gravell


 
 

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 SpecsSystem Spec
Old 06-23-2008   #3 (permalink)
Kaustubh Budukh


 
 

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 SpecsSystem Spec
Old 06-23-2008   #4 (permalink)
Kaustubh Budukh


 
 

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
One more thing I forgoten to tell that I am going to open the file
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 SpecsSystem Spec
Old 06-23-2008   #5 (permalink)
Marc Gravell


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46