Click here to Skip to main content
15,299,443 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All
how can insert br to text box when i enter in key press and get the text with br where i click in button by using asp.net with java script
Posted
Updated 22-Aug-13 1:08am
v2

If you want multi-line textbox then use TextArea in HTML or Set Textmode property value=Multiline to TextBox in ASP.NET
   
Comments
ahmed hussein khazal 22-Aug-13 7:17am
   
i use textbox in asp with multiline textmode properties i want the text with br in the end line of all row of the text
thatraja 22-Aug-13 7:25am
   
Why?
I think you're saving the text into database. If you're using SQL server then use the nVarchar for that particular column. It automatically saves the text in correct format(with line-breaks).
If still you want to add br then you have to do manually using loop based on textbox row count.
ahmed hussein khazal 22-Aug-13 7:21am
   
how can help me
plz

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900