2.导入数据就是第一步你要查询数据库;第二步就是要通过查询的数据库得到一个DataSet或者得到一个DataTable,然后赋值给DataGridView 的一个属性,然后运行即可
用repeat吧,只要样试控制好了就可以<asp:Repeater ID="rp0011" runat="server" EnableViewState="False">
<HeaderTemplate><div style="width:500pxheigth:300pxborder:1px solid #ff9900"></HeaderTemplate>
<ItemTemplate>
<div style=" width:120pxheight:145pxmargin-right:6pxfloat:left">
<img src='../image/<%# Eval("pic_url") %>' style="height:120pxwidth:120pxborder:0px" />
<div style="heigth:25pxline-height:25pxwidth:100%"></div>
</div>
</ItemTemplate>
<FooterTemplate></div></FooterTemplate>
</asp:Repeater>
这个拿过去可以用了,后台绑定数据库就可以了
不知道你是用的什么语言写的网页。这个方法很简单,不需要用到ajax。
你只要在这个页面做一个数据库查询就可以了。筛选的时候让 字段名=网址参数的值
你的网址的参数不同。他就显示不同。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)