[thelist] asp.net: using a form button as a link

Helen helen at helephant.com
Mon Oct 18 17:32:44 CDT 2004


Does it have to be a form button? It might be easier to use some 
stylesheet code to make your link just look like a button.

your link:
<a href="myfile.pdf" class="button">download my file</a>

in your stylesheet:
a.button {
   border: 1px black solid;
   background-color: gray;
   padding: 5px;
   text-decoration: none;
}

       Helen

Casey Crookston wrote:

>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