日期:2014-05-19  浏览次数:20424 次

大家帮个忙,这个使用什么实现的?
http://www.dianping.com/search_d/17/%e7%83%a4%e8%82%89
这种数据库中的记录是通过什么方式显示的,一条记录分多行显示?
比如说:
××××餐厅                                       评价
地址:   西安雁塔区长安中路97号(近国贸大厦)
电话:   029-83176988
标签:   韩国     烧烤     朋友聚餐       查看110封点评
 
这是一条记录,怎么做到象它这种多行显示呢?

象asp.net中GridView好像只能一行显示一条记录,拜托大家了指点一二。

------解决方案--------------------
DataList
------解决方案--------------------
我刚刚做了一个,里面加 <ItemTemplate> 实现

<asp:GridView ID= "GridView1 " runat= "server " AutoGenerateColumns=False
BorderWidth= "1px " cellPadding=4 Height= "164px " Width= "100% " ShowHeader= "False "
BackColor= "white " BorderColor= "#B0D3EA " BorderStyle= "Solid " GridLines= "Horizontal " OnRowDataBound= "Gv_OnRowDataBound "
>
<Columns>
<asp:ImageField DataImageUrlField= "product_image_url " ControlStyle-Width= "154px " ControlStyle-Height= "144px " ItemStyle-HorizontalAlign= "Left " ItemStyle-Width= "30% " > </asp:ImageField>
<asp:TemplateField ItemStyle-Width= "70% " ItemStyle-HorizontalAlign= "left " ItemStyle-Height= "154px " >
<ItemTemplate>
<table width= "100% " style= "height:45px " >
<tr> <td align= "left " > <span class= "blue_font "> 名称: </span> <%#DataBinder.Eval(Container.DataItem, "product_name ").ToString() %> <%#PublicFunction.BindIsNew(DataBinder.Eval(Container.DataItem, "is_new ").ToString())%> </td> </tr>
</table>
<table width= "100% " style= "height:45px ">
<tr> <td align= "left "> <span class= "blue_font "> 简介: </span> <%# DataBinder.Eval(Container.DataItem, "product_desc ") %> </td> </tr>
</table>
<table width= "100% " style= "height:45px ">
<tr> <td align= "left " width= "50% "> <span class= "blue_font "> 编号: </span> <%# DataBinder.Eval(Container.DataItem, "product_code ") %> </td>
<td align= "center " width= "50% ">
<asp:LinkButton runat= "server " ID= "LB "> 详细信息 </asp:LinkButton>
</td> </tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate >
<span> <font color= "blue " > 没有记录 </font> </span>
</EmptyDataTemplate>

</asp:GridView>
------解决方案--------------------
用DataList,DataGrid模板列,Repeater都可以做啊,简单的很!
.net 2005 GridVie