Click here to Skip to main content
15,940,550 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 with java script
Updated 22-Aug-13 1:08am

Share this answer
If you want multi-line textbox then use TextArea in HTML or Set Textmode property value=Multiline to TextBox in ASP.NET
Share this answer
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    
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

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

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