New line in a ASP.NET label

Hello,
I have one ASP.NET web form, which contain a label to display a warning message.
The label is implemented as :

label.Text = "some warning text here" & variable & "text continue here" & ...

I want that the  "text continue here"  will be displayed on a second line in the same label:

 "some warning text here" & variable
 "text continue here" & ...

Can i do this without using another label, thanks,
i am using VB.
Nyana22Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Snarf0001Connect With a Mentor Commented:
since asp.net, just insert (br /), but pretend those are angled brackets (don't haveon my phone)
0
 
JambyteCommented:
try:

label.Text = "some warning text here" & variable & vbcrlf & "text continue here"

or maybe you can use an html table that will word wrap the label in a table column?
0
 
Jorge PaulinoIT Pro/DeveloperCommented:
You can use
label.Text = "some warning text here" & variable & vbNewLine & "text continue here"
 
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Jorge PaulinoIT Pro/DeveloperCommented:
Opps! To slow :)
0
 
Nyana22Author Commented:
vbcrlf
didn't work
0
 
Nyana22Author Commented:
even vbNewLine didnt work!
0
 
Nyana22Author Commented:
thanks
0
All Courses

From novice to tech pro — start learning today.