hyperlink within text C#.NET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emadattalla1983
    New Member
    • Apr 2007
    • 24

    hyperlink within text C#.NET

    Hi
    I need to have a like this within the text.
    I can have it using asp ..
    but I need to have it in a Label or TextBox... for further work.
    Anybody have any kind of solution ?

    Ex.:
    Mr. X Is a gr8 man
    He never ... check this link for more info.

    Thanks in advance
  • shweta123
    Recognized Expert Contributor
    • Nov 2006
    • 692

    #2
    Hi,

    Please Place a LinkLabel control within a Label or Textbox Control.You will get the required functionality.

    Comment

    • emadattalla1983
      New Member
      • Apr 2007
      • 24

      #3
      Originally posted by shweta123
      Hi,

      Please Place a LinkLabel control within a Label or Textbox Control.You will get the required functionality.

      Hi,
      First, I think u mean HyperLink control as I did not find LinkLabel control ?
      Secondly, how can I place a control within another ? I could not do it.
      Thanks alot

      Comment

      • geo039
        New Member
        • Nov 2006
        • 47

        #4
        There is a control in the toolbox under common controls called LinkLabel.

        Comment

        • emadattalla1983
          New Member
          • Apr 2007
          • 24

          #5
          Originally posted by geo039
          There is a control in the toolbox under common controls called LinkLabel.
          Well, you are right but all common controls are not active = cannot drag them in Web application.
          But when I tried it in windows application, it works well.
          Then, still the problem exists !

          Comment

          • emadattalla1983
            New Member
            • Apr 2007
            • 24

            #6
            Do anyone knows how to solve this problem and thankfully tell me about it?

            Comment

            • emadattalla1983
              New Member
              • Apr 2007
              • 24

              #7
              Well,
              I just got it and wanna share it with everybody.

              In Label.Text or TextBox.Text u should write the link in html code like the following:

              <A href="chapter2. html">Chapter two</A> is very important chapter

              will result in:
              Chapter two is very important chapter.

              Good luck and thanks for helpers:)

              Comment

              • ptpa365
                New Member
                • Apr 2007
                • 3

                #8
                you are right~!

                Comment

                Working...