Last post Sep 28, 2007 11:20 AM by RobHood
Sep 26, 2007 11:51 AM|bettonirm|LINK
Blogs asp.net 1.1 globalization
tableadapter not defined
"Access Denied" CS0016
SQL Insert Into
body tag codebehind code onload
TableAdapter View Data
tableadapter update insert
"asp.net 2.0" "visual studio"
text field freetextbox
Sep 26, 2007 12:03 PM|moredotnet|LINK
textbox1.text = textbox1.text + "<br/>";
Also, set the multiline property of the textbox to true.
(pls mark as answer if reply helps)
Sep 26, 2007 12:33 PM|RobHood|LINK
in place of <br />
Sep 28, 2007 10:09 AM|bettonirm|LINK
Thanks for your help but I am not sure how to apply this. In VB code or HTML?
Sep 28, 2007 10:28 AM|vasanth.kumar.d|LINK
try this one,
TextBox1.Text = "booga" + Chr(13) + "booga1"
TextBox1.Text = "booga" + "\n" + "booga1" ;
Sep 28, 2007 11:20 AM|RobHood|LINK
The sql table must be able to handle any character; you should not have any problem saving <br> or Environment.NewLine
In your textbox, if you insert <br />, it will be shown to the user as is; on the other hand, if you insert
Environment.NewLine you will have a new paragraph in the textbox.
The textbox should be able to handle multilines; its TextMode property should be Multiline; and in the design view, drag the lower border of the textbox to show as many lines as you want; of course, if the text inside this textbox is greater
than its space defined at design time, the user can see the rest of the text by dragging the textbox elevators.
On the other hand, if you want to move text between html and the textbox, you can replace the <br /> by
Environment.NewLine like this:
and of course in some cases you can do the inverse.