Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking Mailto to ImageButton 1

Status
Not open for further replies.

Strobeman

Programmer
May 16, 2003
40
AU
I would like my image button to kick off an email and it is only refreshing the screen. Any ideas?

<td><a href ="mailto:myname@mydomain.com"><asp:ImageButton ID="ImageButton2" ToolTip="Email" runat="server" Width="48" Height="48" ImageUrl="~/App_Themes/CQT/images/Envelope.png" /></a></td>

Thanks
 
Embedding a button inside an anchor will probably mean only the anchor is clicked and therefore only that action will fire. One solution would be to use a javascript on the Button to launch the mail message (see thread855-1334637 for an example).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top