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. Advertising

  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. 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. Craig Kenisston

    HTML code warnings in asp.net html code view

    Craig Kenisston, Oct 7, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    2,185
    Martin Dechev
    Oct 7, 2004
  2. \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,719
    Saber
    Aug 16, 2005
  3. DigitalUncle
    Replies:
    0
    Views:
    984
    DigitalUncle
    Nov 2, 2004
  4. Chuck Amadi
    Replies:
    0
    Views:
    541
    Chuck Amadi
    Jun 22, 2004
  5. =?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:
    455
    Mark Rae [MVP]
    Nov 7, 2007
Loading...

Share This Page