.NETGURU
Mailto:
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-mail' list.


Carlos Magalhaes
-- Moved from [aspngfreeforall] to [ngfx-mail] by Tim Musschoot <Click here to reveal e-mail address> --

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>Mailto:</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hi all , </FONT>
<BR><FONT SIZE=3D2> </FONT>
<BR><FONT SIZE=3D2>I have a image button and in the onclick event I =
have some code at the end of that code I want to fire a mailto: =
Click here to reveal e-mail address.</FONT></P>

<P><FONT SIZE=3D2>How can I do this from the code behind?</FONT>
</P>

<P><FONT SIZE=3D2>Thanks</FONT>
</P>

<P><FONT SIZE=3D2>Here is the code I am using:</FONT>
</P>

<P><FONT SIZE=3D2>Private Sub Mail_Click(ByVal sender As Object, ByVal =
e As System.Web.UI.ImageClickEventArgs) Handles Mail.Click</FONT>
<BR><FONT SIZE=3D2>        Dim =
username As String</FONT>
<BR><FONT SIZE=3D2>        Dim Str =
As String</FONT>
<BR><FONT SIZE=3D2>        username =
=3D User.Identity.Name()</FONT>
<BR><FONT SIZE=3D2>        Dim arr =
As Array</FONT>
<BR><FONT SIZE=3D2>        Str =3D =
username</FONT>
</P>

<P><FONT SIZE=3D2>        arr =3D =
Split(Str, "\")</FONT>
<BR><FONT SIZE=3D2>        Dim =
mailaddress As String</FONT>
<BR><FONT SIZE=3D2>        =
mailaddress =3D arr(1) + "@nasa.com"</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>    End Sub</FONT>
</P>

<P><FONT SIZE=3D2>Carlos</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>=A0</FONT>
</P>

</BODY>
</HTML>

-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.

Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.

If you have received this email in error please notify
Click here to reveal e-mail address For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>

Reply to this message...
 
    
Carlos Magalhaes
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>FW: Mailto:</TITLE>
</HEAD>
<BODY>
<BR>
<BR>

<P><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>--Hi all ,</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>--I have a image button and in the onclick event I have some code at the end</FONT>
<BR><FONT SIZE=2>--of that code I want to fire a mailto: Click here to reveal e-mail address.</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>--How can I do this from the code behind?</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>--Thanks</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>--Here is the code I am using:</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>--Private Sub Mail_Click(ByVal sender As Object, ByVal e As</FONT>
<BR><FONT SIZE=2>--System.Web.UI.ImageClickEventArgs) Handles Mail.Click</FONT>
<BR><FONT SIZE=2>--        Dim username As String</FONT>
<BR><FONT SIZE=2>--        Dim Str As String</FONT>
<BR><FONT SIZE=2>--        username = User.Identity.Name()</FONT>
<BR><FONT SIZE=2>--        Dim arr As Array</FONT>
<BR><FONT SIZE=2>--        Str = username</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>--        arr = Split(Str, "\")</FONT>
<BR><FONT SIZE=2>--        Dim mailaddress As String</FONT>
<BR><FONT SIZE=2>--        mailaddress = arr(1) + "@nasa.com"</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>--    End Sub</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>--Carlos</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>--</FONT>
</P>

</BODY>
</HTML>

-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.

Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.

If you have received this email in error please notify
Click here to reveal e-mail address For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>

Reply to this message...
 
 
System.Web.UI.ImageClickEventArgs




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification