Please help. asp:hyperlink

  • Thread starter Thread starter Aaron
  • Start date Start date
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
 
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
 
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
 
Hello Aaron,

In your code-behind file:

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