Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello,

 

I have a text area in one panel.

 

The text area contains

 

"Analyze systems

 

Design systems

 

Test systems"

 

I have a label in another panel.

 

<TD vAlign="top" align="left">

<asp:Label id="lblJobDesc"

runat="server"></asp:Label>

</TD>

 

I assign the textarea's value to the label as follows

 

lblJobDesc.Text = txtJobDesc.Value

 

but for some reason, the carriage returns don't

appear and the three rows appear next to each other.

 

How can I show these three distinct rows in a label

control?

 

Thank you,

 

Burak

Posted

Here is my code

 

Dim strJobDesc As String

 

strJobDesc = txtJobDesc.Text

 

Replace(strJobDesc, vbCrLf, "<BR>")

lblJobDesc.Text = strJobDesc

 

as you can see I am trying to replace the carriage return-line feed with "<BR>" but this did not work for me.

 

Did you have any other ideas?

 

Thanks,

 

Burak

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...