|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Using hyperlink control for downloadingHi,
Is there a way to use a hyperlink control for downling a file from the server to the client? Currently, it works if I run the web app from the server. However, when I run the app from a client and right-click the hyperlink, it shows a popup menu including 'Save Link As' but when I select the 'Save link as' menu item nothing happens. Thanks! It is certainly possible to make a link initiate a file download.
It sounds like you've got some buggy code. I suspect you've failed to turn the file link into a URL and you are instead using a local path to the file. The local path would work from the server but not from any clients, matching the behavior you've described. Here's more info on file uploads and downloads: http://SteveOrr.net/articles/EasyUploads.aspx Show quoteHide quote "dave" <t***@charter.net> wrote in message news:8ui752ptqks04qj3100e30nu5tf0pd57ta@4ax.com... > Hi, > > Is there a way to use a hyperlink control for downling a file from the > server to the client? Currently, it works if I run the web app from > the server. However, when I run the app from a client and right-click > the hyperlink, it shows a popup menu including 'Save Link As' but when > I select the 'Save link as' menu item nothing happens. > > Thanks! Thanks, Steve. That's exactly what I did, I created a local link but
not a UTL. Appreciate the help! Dave. On Sat, 29 Apr 2006 15:02:44 -0700, "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote: Show quoteHide quote >It is certainly possible to make a link initiate a file download. >It sounds like you've got some buggy code. I suspect you've failed to turn >the file link into a URL and you are instead using a local path to the file. >The local path would work from the server but not from any clients, matching >the behavior you've described. > >Here's more info on file uploads and downloads: >http://SteveOrr.net/articles/EasyUploads.aspx
System.Web.HttpException FindContol exception
Automatic <%@Register of Web User Controls in a Project? Disabling certain url's in a menu? Listbox Flicker detailsView DeleteCommand asp.net 2.0 webparts Setting control focus on roundtrip TableCell: BackColor Property But No BackGround Property? How do I create a Drop Down List with Hyperlinks as List Items in ASP.NET Is there a way to suppress the underline on the day link in a Calendar Control |
|||||||||||||||||||||||