Avatar of jampost
Flag for United States of America asked on

Add function to a Button event in asp.net -- Environment is Visual Studio 2012 asp.net/Visual Basic

I need a button called email to take the user to their email program and fill in my email address jmtillery@jandmmfg.com and subject=Question/Comment. This currently works on my website www.jandmmfg.com, but I am changing some things such as putting buttons where there is just text links. Other buttons will just move the user to different pages. I am not sure how to combine the button code with the Mailto or the simple link code. I need to know the syntax of adding function to button code. See below samples.    

<input id="Button1" type="button" value="email"/>
<a href="mailto:jmtillery@jandmmfg.com?subject=Question/Comment"title="jmtillery@jandmmfg.com"><b>email</b></a>
<a href="Equipment.aspx"><b>Equipment</b></a>

Thank you for any help.  --  Joe
ASP.NET* syntaxMicrosoft Visual StudioVisual Basic.NETWeb Development

Avatar of undefined
Last Comment

8/22/2022 - Mon
Shalu M

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Thank you for your help.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy