如何在多行中检索和显示数据 [英] How Retrieve and dispaly the data in multiple lines
问题描述
大家好,
我有两个带有textmode = multiplelines的文本框现在插入数据库并检索数据。
我的文本框文本喜欢
1.检查文字以确保书写和逻辑结构良好
2.正确的语法和拼写
3.确保文本符合出版商的''家居风格''
4.检查事实并向作者提出疑问
5 。寻找潜在的法律问题并与出版商讨论
6.检查插图和标题是否正确。
插入数据库,但是每当从数据库格式检索数据时都会丢失并且它显示为大段落。我的数据显示如..
1.检查文本以确保其编写良好且逻辑结构正确2.正确的语法和拼写3.确保文本符合出版商的''家居风格''4.检查事实并向作者提出疑问5.留意潜在的法律问题并与出版商讨论6.检查插图和标题是否正确。
如何在从数据库中检索数据后显示相同的格式。
请提出任何想法。< br $> b $ b
感谢你
Hi all,
I have two textboxs with textmode=multiplelines now insert into database and retrieve the data.
my textbox text like is
1.check text to ensure it is well written and logically structured
2.correct grammar and spelling
3.ensure the text is in line with the publisher''s ''house style''
4.check facts and raise queries with the author
5.look out for potential legal problems and discuss them with the publisher
6.check illustrations and captions are correct.
insert into database, but whenever retrieve the data from database format is missing and its show as big paragraph. my data show like..
1.check text to ensure it is well written and logically structured 2.correct grammar and spelling 3.ensure the text is in line with the publisher''s ''house style'' 4.check facts and raise queries with the author 5.look out for potential legal problems and discuss them with the publisher 6.check illustrations and captions are correct.
how to display the same format after retrieving data from database.
please give any ideas.
thanking you
推荐答案
string DBData=""; // variable with data stored in database.
string HtmlData = DBData.Replace(Environment.NewLine, "<br />");
string descri = "input text or retrieve text from database";
span.InnerHtml = descri.Replace(System.Environment.NewLine, "<br/>");
工作正常,
感谢和问候
its working fine,
thanks and regards
这篇关于如何在多行中检索和显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!