Please help. asp:hyperlink

Discussion in 'ASP .Net' started by Aaron, Apr 29, 2004.

  1. Aaron

    Aaron Guest

    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, Apr 29, 2004
    #1
    1. Advertising

  2. 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
     
    =?Utf-8?B?QW5kcmV3IFdpZWQ=?=, Apr 29, 2004
    #2
    1. Advertising

  3. Aaron

    Aaron Guest

    RE: Please help. asp:hyperlink

    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
     
    Aaron, Apr 29, 2004
    #3
  4. Aaron

    Matt Berther Guest

    Hello Aaron,

    In your code-behind file:

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

    > 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

    --

    --
    Matt Berther
    http://www.mattberther.com
     
    Matt Berther, Apr 29, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    569
    Chris Uppal
    May 5, 2005
  2. KK
    Replies:
    2
    Views:
    728
    Big Brian
    Oct 14, 2003
  3. davetichenor
    Replies:
    1
    Views:
    914
    Eliyahu Goldin
    Oct 30, 2006
  4. Ken
    Replies:
    1
    Views:
    432
    Alvin Bruney
    Aug 16, 2003
  5. Dave
    Replies:
    0
    Views:
    1,002
Loading...

Share This Page