Results 1 to 1 of 1

Thread: display links in textbox/label?[RESOLVED]

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    display links in textbox/label?[RESOLVED]

    Hi.

    Is it possible to display a hyperlink in a label/textbox in .NET 1.1?

    The reason is for this:

    text is entered to be stored into SQL Server and this text may have links to other websites and so on

    I am using a datalist/grid to bind the appropriate UI controls to the data to be retrieved from SQL Server (label1 could be bind to article name, label2 could be bind to article itself) etc... know what I mean?

    So when the items are being binded, I want to be able to show hyperlinks appropriately where a url is given/picked up (maybe by a marker I can set in the text entry when inserting into SQL)

    I know how to display hyperlinks in html, duh, but do not want to have to use a datareader to display the entire page in html, as it could also have pics and so on and it would just be messy.

    Anyway - is there a reasonable way of making a control/extending a control to allow it not only to display standard plain text but also display a hyperlink?

    Thanks!


    RESOLVED:

    theLabel.text="<a href=http://www.link.com>the link to website</a>"
    Last edited by Techno; Sep 8th, 2005 at 07:00 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width