esposito Posted May 1, 2004 Posted May 1, 2004 Hello, I'm new to ASP.NET. I would like to populate a textbox programmatically with some text containing different paragraphs. Unfortunately, I don't know the code that allows you to go to a new line in ASP.NET. I have tried to use the VB keywords Chr(13) & Chr(10) as in the following example but it didnt work. <code> TextBox1.Text = "This is the first paragraph." & Chr(13) & Chr(10) & "And this should be the second!" </code> Any help? TIA Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
Moderators Robby Posted May 1, 2004 Moderators Posted May 1, 2004 TextMode = MultiLine Then you can do this.... TextBox1.Text = "This is the first paragraph." & ControlChars.NewLine & "And this should be the second!" Quote Visit...Bassic Software
esposito Posted May 2, 2004 Author Posted May 2, 2004 Thanks, now it works perfectly. Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.