Please help. asp:hyperlink

A

Aaron

How do I do this?
<asp:hyperlink style="Z-INDEX: 144; LEFT: 4px; POSITION: absolute; TOP:
119px" runat="server" Text="Click Me!" NavigateUrl="mailto://<%
response.write(txtBEmail.Text.ToString) %>" ID="Hyperlink1">BEmail
</asp:hyperlink>

I would like to construct a url based upon the contents of a textbox.


Any ideas?

Thanks,
Aaron
 
G

Guest

Aaron: I would think you could go about it this way
--[In the html] --
<asp:hyperlink style="z-index:144;left:4px;position:absolute; top:119px;" runat="server" text="Click Me!" id="hyperlink1">BEmail</asp:hyperlink

---[And in the vb or vc, etc codebehind (Inline is fine as well)]----
Public hyperlink1 as Hyperlin

....(in the pageload, or another function
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loa

hyperlink1 = txtBEmail.Text.ToStrin

End Su

Hope this helps.
-Andrew Wie

----- Aaron wrote: ----

How do I do this
<asp:hyperlink style="Z-INDEX: 144; LEFT: 4px; POSITION: absolute; TOP:
119px" runat="server" Text="Click Me!" NavigateUrl="mailto://<
response.write(txtBEmail.Text.ToString) %>" ID="Hyperlink1">BEmai
</asp:hyperlink

I would like to construct a url based upon the contents of a textbox


Any ideas

Thanks
Aaron
 
A

Aaron

Thank you for your help. This is exactly what I need. In the page_Load
event I have added:

Hyperlink1.NavigateUrl = "mailto://" & txtBMail.Text.ToString

Aaron
 
M

Matt Berther

Hello Aaron,

In your code-behind file:

Hyperlink1.NavigateUrl = "mailto://txtBEmail.Text";
 

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

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top