如何在数据中基于分号的多行文本框中创建多行 [英] How Do I Create Multilines In A Multiline Text Box Based On Semicolon In Data
本文介绍了如何在数据中基于分号的多行文本框中创建多行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在vb.net中用sql server 2012中的后端编码。
在多行文本框中,我想显示一个字符串字段数据,其中多行以分号分隔(;)
Currentely来自字段的所有文本都显示为单句。
如何根据字符(;)创建新行?
以下是目前使用的简单代码:
Hi All,
I am coding in vb.net 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")
提前致谢
Atul
Thanks in advance
Atul
推荐答案
拆分基于某些角色的文字。对于例如空白或全停等。
然后将其显示为< ul>< li> item1< / li>< li> item2< / li> ...< / ul>在div控件中列出。
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.
这篇关于如何在数据中基于分号的多行文本框中创建多行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文