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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use LinkButton to open application

Status
Not open for further replies.

Rich75

Technical User
Jun 13, 2003
22
GB
Hi
I would like to use a link button to open a mailto command.
can this be done.

thanks

Rich
 
Is there a particular reason why you need to use a LinkButton and not a control such as the HyperLink?


____________________________________________________________

Need help finding an answer?

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

 
the problem is this a hyperlink will open the mailto: but i need to update the table when the hyperlink is clicked (no onclick with hyperlink)... so i figured i would use the linkbutton but have now found that there is no navigation with a link button except with using javascript (this is where i get stuck)
 
In that case, you can use something like:
Code:
LinkButton1.Attributes.Add("onclick", "location.href='mailto:name@domain.net'")


____________________________________________________________

Need help finding an answer?

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

 
Brilliant that works ... how can i make the mailto a variable i.e Dim MyVar as string MyVar=some@somewhere.com LinkButton1.Attributes.Add("onclick", "location.href=' & yVar & "'") thanks again for your help
 
ITS OKAY I GOT IT TO WORK...
THANKS AGAIN FOR YOUR HELP
DIM MAILURL

MAILURL = "SOMEONE@SOMEWHERE.COM"

LinkButton1.Attributes.Add("onclick", "location.href=" & "'" & mailurl & "'")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top