Author: haggis999 | Posted on: 10/17/2008 3:54:37 PM | Views : 244

A very common web page feature is to have an icon that the user can click to get a dialogue box offering him the choice of either opening or saving a predetermined PDF file (or a Word doc, etc). Given that it is so common, I am very surprised to be having great difficulty in finding out how it is done. I have three fat textbooks on ASP.NET 3.5 and they don't tell me anything about this. I have tried several MDSN searches via the online help of VWD Express and found nothing. Perhaps I'm just using the wrong words in my searches.

However, I did eventually find one code sample for downloading an image that I modified for my PDF doc. However, it doesn't work. The dialogue box opens, but when I click on Save it just seems to go into a never ending loop trying to download my aspx page. Where am I going wrong?

David

=======================  VB.NET code attached to click event of ImageButton  ==========================

 Go to the complete details ...