By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,837 Members | 1,222 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,837 IT Pros & Developers. It's quick & easy.

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

P: n/a
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....

Jun 27 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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
Jun 27 '08 #2

P: n/a
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
Jun 27 '08 #3

P: n/a
On Jun 23, 2:52*pm, Kaustubh Budukh <kaustubh.bud...@gmail.comwrote:
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!
Jun 27 '08 #4

P: n/a
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
Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.