是否可以通过文本框以html格式绑定数据库中的数据 [英] Is it possile to bind the data from database through textbox in html format

查看:220
本文介绍了是否可以通过文本框以html格式绑定数据库中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这是斯里坎特


我希望将sql server 2005数据库中的描述以html格式绑定到文本框.表示我具有连续格式的最大数据长度,但我只想在前端视图中将海量数据分成较小的paragraghs.


示例:
职位:具有B2B集成专业知识的职位地点:CA FullTime的Hercules必须具备以下技能:具有设计,开发,实施和支持EDI/打孔集成的动手经验,最好使用Sterling Integrator(Gentran)软件工具集.Baan或具有类似的ERP经验,具有BEA Enterprise Service Bus,WLI和BPEL工具集的经验.具有电子商务解决方案的应用程序和工具的经验,包括Autonomy搜索引擎,Sterling多渠道销售(融合)电子商务应用程序,Interwoven TeamSite和BEA WebLogic Portal





我可以以此格式显示


职位:精通B2B集成专业知识

位置:加利福尼亚州赫拉克勒斯

全职



必须具备的技能:



在设计,开发,实施和支持EDI/打孔集成方面的实践经验,最好使用Sterling Integrator(Gentran)软件工具集.

具有Baan或类似ERP的经验,具有BEA Enterprise Service Bus,WLI和BPEL工具集的经验.

Hi

Thsi is Srikanth


I want the bind the description from my sql server 2005 database to textbox in a html format. means i am having maximum length of data in a continuous format but i just want to divide the huge data into small sort of paragraghs in the front end view.


example:
Position :Sterling with B2B Integration expertise Location :Hercules, CA FullTime Must have skills:Hands-on experience in designing, developing, implementing and support EDI / Punch-out Integrations, ideally using Sterling Integrator (Gentran) software toolset.Experience in Baan or a similar ERP, experience with BEA Enterprise Service Bus, WLI and BPEL toolsets.Experience with applications and tools for ecommerce solution including Autonomy search engine, Sterling Multi-channel Selling (Comergent) ecommerce applications, Interwoven TeamSite and BEA WebLogic Portal





can i display in this format


Position :Sterling with B2B Integration expertise

Location : Hercules, CA

FullTime



Must have skills:



Hands-on experience in designing, developing, implementing and support EDI / Punch-out Integrations, ideally using Sterling Integrator (Gentran) software toolset.

Experience in Baan or a similar ERP, experience with BEA Enterprise Service Bus, WLI and BPEL toolsets.

Experience with applications and tools for ecommerce solution including Autonomy search engine, Sterling Multi-channel Selling (Comergent) ecommerce applications, Interwoven TeamSite and BEA WebLogic Portal is a plus to have

推荐答案

您将无法在文本框中将文本显示为HTML,您需要使用富文本框或其他类型的html编辑器.但是,您可能只想显示此信息,而不要对其进行编辑.如果是这样,只需将其显示在标签中即可.

最简单的方法是首先以html格式存储信息.如果遵循良好实践并为数据访问和业务逻辑提供单独的层是不可能的,那么无论如何选择,都可以在逻辑层格式化信息并将其绑定到UI中的控件.
You wouldn''t be able to display the text as HTML in a textbox, you would need to use a rich textbox or other type of html editor. However, you probably only want to display this information, not edit it. If this is true that just display it in a label.

The easiest thing would be to store the information in html format in the first place. If that is not possible if you follow good practices and have separate layers for your data access and business logic, then the information could be formatted at the logic layer anyway you choose and bound to the controls in the UI.


这篇关于是否可以通过文本框以html格式绑定数据库中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆