How write this HTML output from within ASP.NET code?

Discussion in 'ASP .Net' started by Ronald S. Cook, Oct 12, 2007.

  1. How can I write this code so that it will appear as just "Click here" but
    encoded with the link information?

    strFile = "Click here";
    row["Link"] = "<a href="http://www.ibm.com>" + strFile + "</a>";

    Thanks!
     
    Ronald S. Cook, Oct 12, 2007
    #1
    1. Advertisements

  2. On Oct 12, 5:53 am, "Ronald S. Cook" <> wrote:
    > How can I write this code so that it will appear as just "Click here" but
    > encoded with the link information?
    >
    > strFile = "Click here";
    > row["Link"] = "<a href="http://www.ibm.com>" + strFile + "</a>";
    >
    > Thanks!


    row["Link"] = "<a href=\"http://www.ibm.com\">" + strFile + "</a>";
     
    Alexey Smirnov, Oct 12, 2007
    #2
    1. Advertisements

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. David Virgil Hobbs
    Replies:
    0
    Views:
    685
    David Virgil Hobbs
    Jan 6, 2004
  2. Craig Kenisston

    HTML code warnings in asp.net html code view

    Craig Kenisston, Oct 7, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    2,386
    Martin Dechev
    Oct 7, 2004
  3. \A_Michigan_User\

    Write ASP.NET 1.1 code with VB.net or VS.net ?

    \A_Michigan_User\, Aug 15, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    1,971
    Saber
    Aug 16, 2005
  4. DigitalUncle
    Replies:
    0
    Views:
    1,255
    DigitalUncle
    Nov 2, 2004
  5. Chuck Amadi
    Replies:
    0
    Views:
    645
    Chuck Amadi
    Jun 22, 2004
  6. mark4asp
    Replies:
    2
    Views:
    2,467
    Harry Haller
    Nov 7, 2006
  7. Grant Schenck
    Replies:
    0
    Views:
    880
    Grant Schenck
    Mar 29, 2007
  8. =?Utf-8?B?UGF1bA==?=

    HTML Code embedded within HTML Page as Text

    =?Utf-8?B?UGF1bA==?=, Nov 7, 2007, in forum: ASP .Net
    Replies:
    5
    Views:
    582
    Mark Rae [MVP]
    Nov 7, 2007
Loading...