carriage return in web textbox

  • Thread starter Thread starter VMI
  • Start date Start date
V

VMI

If I want to separate a string in a web textbox so that it takes several
lines, how can do it?
In a Windows textbox, I only needed to add the "\r\n" to the string for the
carriage return. Apparently it's not the same with the web textbox.

Thanks.
 
Hi,

Yes, it's

post some code, you are using a textbox or a TextArea ?

if you are using the webcontrol then you have to use TextBox.TextMode =
TextMode.Multiline; then it will generate a textarea instead of a "input
type=text" in the client

cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top