how do i insert a line break in a label

Discussion in 'ASP .Net' started by pavan, May 5, 2006.

  1. pavan

    pavan Guest

    in my code i am storing the contents into a label
    // code is as follows
    lblSecurity.Text = lblSecurity.Text & vbCrLf & _
    "Task Description"
    this is not working though.
    please advise
    pavan, May 5, 2006
    #1
    1. Advertising

  2. Standard question #1:
    What do you mean by "not working"?

    Standard question #2:
    What error message do you get?

    pavan wrote:
    > in my code i am storing the contents into a label
    > // code is as follows
    > lblSecurity.Text = lblSecurity.Text & vbCrLf & _
    > "Task Description"
    > this is not working though.
    > please advise
    >
    =?ISO-8859-1?Q?G=F6ran_Andersson?=, May 5, 2006
    #2
    1. Advertising

  3. pavan

    Greg Young Guest

    Try HtmlEncoding the output so it shows up with a <BR> (or just use <BR>
    directly)

    Cheers,

    Greg
    "pavan" <> wrote in message
    news:...
    > in my code i am storing the contents into a label
    > // code is as follows
    > lblSecurity.Text = lblSecurity.Text & vbCrLf & _
    > "Task Description"
    > this is not working though.
    > please advise
    >
    Greg Young, May 5, 2006
    #3
    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. Jacek Stepniewski

    How to break line in Label control

    Jacek Stepniewski, Dec 3, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    429
    mikeb
    Dec 4, 2003
  2. =?Utf-8?B?TWFyZHk=?=

    Insert a line break in a label control

    =?Utf-8?B?TWFyZHk=?=, Jul 30, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    8,130
    =?Utf-8?B?TWFyZHk=?=
    Jul 30, 2005
  3. Julia B
    Replies:
    5
    Views:
    468
    Julia B
    Jan 29, 2008
  4. Replies:
    12
    Views:
    944
  5. Knut Krueger
    Replies:
    8
    Views:
    255
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page