且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我要进行动态控制吗?

更新时间:2023-11-29 14:29:40

^ ]


我认为您应该使用中继器控件.它只会对来自数据库的可用记录重复.让您的中继器显示标签和图像.每条记录都会显示一个标签和图像.
I think you should use repeater control. it will repeat only for the available records coming from the database. Have your repeater to show a label and image. for each record a label and image will be displayed.


Gaurav,

我们可以通过多种方式做到这一点.几个如下.

1. jquery中有一个概念可以在客户端脚本中实现,称为"jquery模板".

请参阅此链接:
http://api.jquery.com/jquery.tmpl/ [
Hi Gaurav,

We can do this many ways. few are as follows.

1.There is a concept in jquery to achieve this in client script, called ''jquery templates''.

refer this link:
http://api.jquery.com/jquery.tmpl/[^]

If you know ajax its pretty much simple to achieve this task using jquery template.


2.otherwise you have to add html literal control from server script.

3.use gridview template or repeater control.

First one is most preferable by most of the developers for performance.