[thelist] asp.net: using a form button as a link
Peter Brunone (EasyListBox.com)
peter at easylistbox.com
Mon Oct 18 17:00:58 CDT 2004
Do you just want it to act exactly like a link? If that's the
case, why not use a regular HTML button?
<input type="button" value="Get File"
onClick="window.location.href='somefile.pdf';" />
(you can even add a runat="server" if you like)
Of course if you want it to post back to the server and initiate
some kind of streaming action there, that's another story.
Cheers,
Peter
-----Original Message-----
From: thelist-bounces at lists.evolt.org On Behalf Of Casey Crookston
I've got a pdf file users may want to download. How does one format a
form button to download the file?
<asp:button text="Download" onclick="??" runat="server"/>
Thanks,
Casey
More information about the thelist
mailing list