如何以完全样式化的布局将数据库驱动的文本绑定到网页? [英] how can i bind database driven text to a webpage in fully styled layout?
本文介绍了如何以完全样式化的布局将数据库驱动的文本绑定到网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序中,我必须将产品详细信息(如productID,ProductName,ProductSpecification和ProductDescription)存储在数据库中,并且需要在Web表单上进行绑定.
我想用完全样式化的布局将这些数据绑定到Web表单上.
请提出建议.
In my application i have to store the Products Details like productID, ProductName, ProductSpecification, and ProductDescription in Database and need to bind on web form.
I want to bind these data on web form with fully styled layout.
please suggest.
推荐答案
首先确定用于显示数据的布局类别.检查现有的控件(例如gridview
)是否足以满足要求.
如果没有Repeater
控件,则自己创建一个自定义布局并显示数据.
P.S.使用CSS和/或Asp.NET主题,这些控件可以是完全样式.
这是一个有关如何使用中继器控件的小示例: http://www.aspdotnet-suresh.com/2012/01/repeater-control-example-in-aspnet.html [
First of all decide the layout category which you need to use to show the data. Check if the existing controls likegridview
will suffice for that.
If not have aRepeater
control and create a custom layout yourself and show the data.
P.S. these controls can be fully styles using CSS and/or Asp.NET themes.
Here is a small example on how to use repeater control: http://www.aspdotnet-suresh.com/2012/01/repeater-control-example-in-aspnet.html[^]
MSDN will also help a lot in usingrepeater
or any other data bound control.
这篇关于如何以完全样式化的布局将数据库驱动的文本绑定到网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文