Mailto in Code behind

J

Joriz

I have an image button that when click executes this

Private Sub btnContact_Click(ByVal sender As System.Object, ByVal e As
System.Web.UI.ImageClickEventArgs) Handles btnContact.Click

Response.Redirect("mailto:" & lnkContactEmail.Text)

End Sub

I know this is not the way to do it. This one redirects me to another
page and then opens up the email client. Is there anyway i can just
execute the "mailto" just like when doing an <a href="mailto"...> but
in code-behind.

Thank you very much.
 
J

Joriz

Nope. not on the server but on the clients. so you mean if i issue
this command, response.rediect(..), it will only execute on the
server.

I have page that wherein one of the buttons is "contact me". if the
user clicks on that, it will open up his (client) email.

TIA.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top