Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Wrap label

Wrap label

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-net
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deepthy p m 0
    wrote on last edited by
    #1

    i am using asp.net + C# in my page i use label for "Bio post" ,to display.If the user enter datas like "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"etc. with out enter any space. the alignment problem will occur .i want to display all the details like "aaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaa" "aaaaaaaaa" .Is it possible.I dont need scroll bar in that. if the text not fix in specified width of that label it will come next line.

    S A N 3 Replies Last reply
    0
    • D deepthy p m 0

      i am using asp.net + C# in my page i use label for "Bio post" ,to display.If the user enter datas like "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"etc. with out enter any space. the alignment problem will occur .i want to display all the details like "aaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaa" "aaaaaaaaa" .Is it possible.I dont need scroll bar in that. if the text not fix in specified width of that label it will come next line.

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      Then Why dont you use textbox and use the properties

      TextMode="MultiLine" ReadOnly="True"

      instead of label..!

      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

      1 Reply Last reply
      0
      • D deepthy p m 0

        i am using asp.net + C# in my page i use label for "Bio post" ,to display.If the user enter datas like "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"etc. with out enter any space. the alignment problem will occur .i want to display all the details like "aaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaa" "aaaaaaaaa" .Is it possible.I dont need scroll bar in that. if the text not fix in specified width of that label it will come next line.

        A Offline
        A Offline
        Amit Kushwaha
        wrote on last edited by
        #3

        you can split text according to the available width and send remaining text to the next line. Repeat this process.

        Regards... - Amit Kushwaha

        1 Reply Last reply
        0
        • D deepthy p m 0

          i am using asp.net + C# in my page i use label for "Bio post" ,to display.If the user enter datas like "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"etc. with out enter any space. the alignment problem will occur .i want to display all the details like "aaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaa" "aaaaaaaaa" .Is it possible.I dont need scroll bar in that. if the text not fix in specified width of that label it will come next line.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Put the label in a div and use CSS properties to set the width and height of the div appropriately.


          only two letters away from being an asset

          D 2 Replies Last reply
          0
          • N Not Active

            Put the label in a div and use CSS properties to set the width and height of the div appropriately.


            only two letters away from being an asset

            D Offline
            D Offline
            deepthy p m 0
            wrote on last edited by
            #5

            i use div tag and also css css .label_one { width:700px; height:auto; word-break:normal; word-wrap:break-word; } and add that css in to div but the problem is the width still there after applying that css.

            S 1 Reply Last reply
            0
            • N Not Active

              Put the label in a div and use CSS properties to set the width and height of the div appropriately.


              only two letters away from being an asset

              D Offline
              D Offline
              deepthy p m 0
              wrote on last edited by
              #6

              i want to set the label in in page width but after using the div tag the problem is not solved.is any other control is there.i cant use text box bcs i dont need scroll bar in that.

              N 1 Reply Last reply
              0
              • D deepthy p m 0

                i use div tag and also css css .label_one { width:700px; height:auto; word-break:normal; word-wrap:break-word; } and add that css in to div but the problem is the width still there after applying that css.

                S Offline
                S Offline
                sashidhar
                wrote on last edited by
                #7

                I dont Think So It will Work with css..!

                LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

                1 Reply Last reply
                0
                • D deepthy p m 0

                  i want to set the label in in page width but after using the div tag the problem is not solved.is any other control is there.i cant use text box bcs i dont need scroll bar in that.

                  N Offline
                  N Offline
                  Not Active
                  wrote on last edited by
                  #8

                  deepthy.p.m wrote:

                  i want to set the label in in page width

                  You want the text to wrap, but you also want it to be the width of the page?


                  only two letters away from being an asset

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups