Literal text inside form markup -<a> does not hyperlink

Discussion in 'ASP .Net Mobile' started by EricV, Sep 12, 2008.

  1. EricV

    EricV Guest

    Hi,
    I have a mobile TextView control and dynamically load some text for the
    control.
    My problem is that the hyperlink tag <a> inside the markup does not yield
    to a valid hyperlink.

    So the page l looks like :

    <mobile:Form ID="Form1" Runat="server" StyleReference="Form">
    <mobile:TextView ID="textview1" Runat="server">
    some text.... <a>#Form2</a> .... more text.
    </mobile:TextView>
    </mobile:Form>
    <mobile:Form ID="Form2" Runat="server" StyleReference="Form">
    Hello!
    </mobile:Form>

    The inner text of <a>#form2</a> displays a hyperlink allright. However the
    link is always made to the home page of the application.
    <a>http://mysite</a> fails as well, if you click you go the homepage.

    Any comment is appreciated.
    -Eric
     
    EricV, Sep 12, 2008
    #1
    1. Advertising

  2. EricV

    Ozoid Guest

    Hi

    You should use the href attribute to point to your page/form

    <a href="#Form2">Link to Form2</a>

    Steve


    "EricV" wrote:

    > Hi,
    > I have a mobile TextView control and dynamically load some text for the
    > control.
    > My problem is that the hyperlink tag <a> inside the markup does not yield
    > to a valid hyperlink.
    >
    > So the page l looks like :
    >
    > <mobile:Form ID="Form1" Runat="server" StyleReference="Form">
    > <mobile:TextView ID="textview1" Runat="server">
    > some text.... <a>#Form2</a> .... more text.
    > </mobile:TextView>
    > </mobile:Form>
    > <mobile:Form ID="Form2" Runat="server" StyleReference="Form">
    > Hello!
    > </mobile:Form>
    >
    > The inner text of <a>#form2</a> displays a hyperlink allright. However the
    > link is always made to the home page of the application.
    > <a>http://mysite</a> fails as well, if you click you go the homepage.
    >
    > Any comment is appreciated.
    > -Eric
    >
     
    Ozoid, Oct 26, 2008
    #2
    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. les

    asp:literal and hyperlink field

    les, Jul 5, 2003, in forum: ASP .Net
    Replies:
    6
    Views:
    976
    msnews.microsoft.com
    Jul 14, 2003
  2. Dave
    Replies:
    0
    Views:
    814
  3. geoffbache
    Replies:
    8
    Views:
    666
    Stefan Behnel
    Feb 11, 2008
  4. Dave
    Replies:
    0
    Views:
    439
  5. Anonieko Ramos

    What's wrong with rpc-literal? Why use doc-literal?

    Anonieko Ramos, Sep 27, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    392
    Anonieko Ramos
    Sep 27, 2004
Loading...

Share This Page