How to brake a label server control ?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default How to brake a label server control ?

    Hi,

    My aspx page has a label that is too long and I´d to brake this in
    multiline:

    Now, its is working like this: hey it´s just an example
    105 - There is an error here. Pay attention. Look this again.

    And, I want something like this:
    105 - There is an error here.
    Pay attention.
    Look this again.

    tks
    ed


    Edmilson Guest

  2. Similar Questions and Discussions

    1. Tracking value change in Label control
      Hi, Is there any way to determine the bindable value change in a Label control automatically and fire any function upon that? Thanks! ASB.
    2. Creating my own label control
      I need to enhance the label control by adding a small icon to the right that when clicked will run something for the user. How do I do this? I...
    3. positioning label+textbox in user control
      Hi, i want to create a server-site usercontrol to logon a database: It should be very simple but i cannot get the label en textbox in the write...
    4. brake up a string
      Hi! I have a string I have to break up in several strings. THe string looks like this: 39-Fagleder,38-Eier,42-Avdelingsleder,37-Etelleranna...
    5. Why no align property on Label Web Control?
      Hi, I'm just curious why the HTML label has an align property while the Web Control Label does not? Thanks, Terry
  3. #2

    Default Re: How to brake a label server control ?

    Hi,

    You can use <br> tag inside your label test. Please try like this.
    105 - There is an error here.<br> Pay attention.<br> Look this again.


    --
    Let me know if you need further help

    Regards
    Sreejumon[MVP]
    DOTNET makes IT happen

    "Edmilson" <troqui@padtec.com.br> wrote in message
    news:eGGwD$lQDHA.3192@tk2msftngp13.phx.gbl...
    > Hi,
    >
    > My aspx page has a label that is too long and I´d to brake this in
    > multiline:
    >
    > Now, its is working like this: hey it´s just an example
    > 105 - There is an error here. Pay attention. Look this again.
    >
    > And, I want something like this:
    > 105 - There is an error here.
    > Pay attention.
    > Look this again.
    >
    > tks
    > ed
    >
    >

    Sreejumon[MVP] Guest

  4. #3

    Default Re: How to brake a label server control ?

    how can I do this ?

    Catch exc As SqlException

    lblMessage.Text = "105 - There is an error here. " + exc.Number.ToString +
    " - " + exc.Message.ToString

    Finally

    it doesn´t work...



    "Sreejumon[MVP]" <sreeju_uss@hotmail.com> escreveu na mensagem
    news:eYQAmJmQDHA.3192@tk2msftngp13.phx.gbl...
    > Hi,
    >
    > You can use <br> tag inside your label test. Please try like this.
    > 105 - There is an error here.<br> Pay attention.<br> Look this again.
    >
    >
    > --
    > Let me know if you need further help
    >
    > Regards
    > Sreejumon[MVP]
    > DOTNET makes IT happen
    >
    > "Edmilson" <troqui@padtec.com.br> wrote in message
    > news:eGGwD$lQDHA.3192@tk2msftngp13.phx.gbl...
    > > Hi,
    > >
    > > My aspx page has a label that is too long and I´d to brake this in
    > > multiline:
    > >
    > > Now, its is working like this: hey it´s just an example
    > > 105 - There is an error here. Pay attention. Look this again.
    > >
    > > And, I want something like this:
    > > 105 - There is an error here.
    > > Pay attention.
    > > Look this again.
    > >
    > > tks
    > > ed
    > >
    > >
    >
    >

    Edmilson Guest

  5. #4

    Default Re: How to brake a label server control ?

    uh, how about <BR> :-)

    or put it in a table with a fixed width, and allow wrap.


    "Edmilson" <troqui@padtec.com.br> wrote in message
    news:eGGwD$lQDHA.3192@tk2msftngp13.phx.gbl...
    > Hi,
    >
    > My aspx page has a label that is too long and I´d to brake this in
    > multiline:
    >
    > Now, its is working like this: hey it´s just an example
    > 105 - There is an error here. Pay attention. Look this again.
    >
    > And, I want something like this:
    > 105 - There is an error here.
    > Pay attention.
    > Look this again.
    >
    > tks
    > ed
    >
    >
    >

    David Waz... Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139