Click here to Skip to main content
15,881,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am coding in with backend in sql server 2012.

In a multiline text box, I want to show a string field data with multilines segregated by semicolon (;)

Currentely all the text from field is shown as a single sentence.

How can I create new line based upon the character(;)?

following is the simple code currently used:

textbox.text = datatable.Rows(0).Item("field")

Thanks in advance

1 solution

Split the text based on some character. For e.g. blank or fullstop etc.
Then display this as a <ul><li>item1</li><li>item2</li>...</ul> list inside a div control.
Share this answer
atul sharma 5126 26-Dec-14 4:28am    
thanks for the reply Abhinav!

Let me re-phrase my query: How do we split the text into multilines bases on character ; .


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