显示如这个网http://www.xianhua001.com/category-1-b0-%B9%FA%C7%EC%BD%DA.html列出的花.
我的思路:一种用datalist显示。一种把每种商品做成用户控件,后台循环把每个要显示的商品用户控件加到table.第一种听说前台用服务器控件性能不高,每二种好像听说用多用户控件不好。
大家说要怎样做最高效?
我的思路:一种用datalist显示。一种把每种商品做成用户控件,后台循环把每个要显示的商品用户控件加到table.第一种听说前台用服务器控件性能不高,每二种好像听说用多用户控件不好。
大家说要怎样做最高效?
解决方案 »
- Duwamish适合什么层次的人看?是否有实际用途?
- 点击DataGrid的模版列里的radio的问题?
- 新手虚心请教:关于ASP.NET联接数据库的地址问题。
- GridView中如何获取列的ID
- 怎么样用正则表达式排除一个单词
- 类的问题
- 数据库设置密码后打开的问题
- 【奇怪的问题】
- 登录时记录用户表明用户已经登录,但该在什么地方更改记录,表时用户已经离线呢?
- 如何用ASP.NET访问FOXPRO2.5 ...急!在线等待!
- 急 .net 怎么生成12位的随机数 !!!!!!!!~~~~~~~~~~~~~~~~~~~~`
- 在visual studio 2005 sp1下,新建项目不能添加App_Code
要照你这么说,asp.net根本就没有存在的必要了
你要求最高效做法的话 直接用HTMl 做很高效的
<asp:datalist id="MyList" RepeatDirection=Horizontal RepeatColumns=2 showfooter=true borderwidth=0 runat=server>
<HeaderTemplate>
<table height=100% width=288 cellpadding=0 cellspacing=0 border=0 >
<tr>
</HeaderTemplate>
<ItemTemplate>
<td>
<table>
<tr>
<td width=130>
<a href="Hotel/hotelDetail.aspx?H_ID=<%# DataBinder.Eval(Container.DataItem, "H_ID")%>" target=_blank><img height="90" width="130" border=0 src="HotelManage/pic/<%# DataBinder.Eval(Container.DataItem, "H_Pic1")%>" /></a>
</td>
</tr>
<tr>
<td>
<%# DataBinder.Eval(Container.DataItem, "H_Name")%>
</td>
<td>
<%# DataBinder.Eval(Container.DataItem, "H_Name2")%>
</td>
</tr>
</table>
</td>
</ItemTemplate>
<FooterTemplate>
</tr>
</table>
</FooterTemplate>
</asp:datalist>RepeatDirection=Horizontal 为设置为横向显示RepeatColumns=2 每行显示2条记录img显示图片
下面的td显示信息我要90分