Gridview怎么设置 本帖最后由 kevin_cheung 于 2011-06-22 11:06:50 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script type="text/javascript" > CS里的代码 </script> Gridview好久没有用过了···给你一个Repeater 和 DataList应该都差不多 你借鉴下改改··[align=center] <asp:Repeater ID="rptOrganicBase" runat="server"> <ItemTemplate> <div class="c" style="margin-top: 0px;" onmouseover="this.className='cCopy '" onmouseout="this.className='c'"> <div class="pageleftmenu1"> <a href="OrganicBase.aspx?organseId=<%#Eval("ID") %>" title='<%#Eval("TypeName") %>'> <%#Eval("TypeName") %></a></div> </div> <div style="float: left; margin-left: 40px; _margin-left: 20px;"> <img src="images/2/s_03.png" width="127" height="12" /></div> </ItemTemplate> </asp:Repeater>[/align]<asp:DataList ID="dlAllProduct" RepeatColumns="3" RepeatDirection="Horizontal" runat="server" Height="100px" Width="100%"> <ItemTemplate> <div style="width: 100%; height: 180px;"> <div style="width: 150px; height: 120px;"> <a href="OrganicBase.aspx?ContentsId=<%#Eval("ID") %>" style="text-decoration: none; font-size: 13px; color: #0C0;" title='<%#Eval("ProductName").ToString()%>'> <asp:Image ID="imgProphoto" runat="server" ImageUrl='<%#Eval("ProductPhoto1") %>' Width="140" Height="110" border="0" /></a> <div style="width: 150px; height: 30px; text-align: center;"> <a href="OrganicBase.aspx?ContentsId=<%#Eval("ID") %>" style="text-decoration: none; font-size: 13px; color: #0C0;" title='<%#Eval("ProductName").ToString()%>'> <%# StringOperating.NoHTML(Eval("ProductName").ToString(),8)%></a> </div> </div> </div> </ItemTemplate> </asp:DataList> 抓取网页中文乱码,求解 C#能开发三维图形程序吗? 关于C# 中数据库查询的问题 addin CrystalReport能不能用在Form里自己建的datatable做数据源? 我在label中写了个表格,导出到Excel中,怎么代码写??? 两个应用程序之间的会话问题 求助 Dell本本被锁 这串代码麻烦求大神解释,跪求详细 winfrom怎么判断treeview中的一个节点被选中 趣味小问题,你有办法用循环声明 名为1、2、3、4、5、....1000的string类型的变量吗
CS里的代码
</script>
Gridview好久没有用过了···给你一个Repeater 和 DataList应该都差不多 你借鉴下改改··[align=center] <asp:Repeater ID="rptOrganicBase" runat="server">
<ItemTemplate>
<div class="c" style="margin-top: 0px;" onmouseover="this.className='cCopy '" onmouseout="this.className='c'">
<div class="pageleftmenu1">
<a href="OrganicBase.aspx?organseId=<%#Eval("ID") %>" title='<%#Eval("TypeName") %>'>
<%#Eval("TypeName") %></a></div>
</div>
<div style="float: left; margin-left: 40px; _margin-left: 20px;">
<img src="images/2/s_03.png" width="127" height="12" /></div>
</ItemTemplate>
</asp:Repeater>[/align]
<asp:DataList ID="dlAllProduct" RepeatColumns="3" RepeatDirection="Horizontal" runat="server"
Height="100px" Width="100%">
<ItemTemplate>
<div style="width: 100%; height: 180px;">
<div style="width: 150px; height: 120px;">
<a href="OrganicBase.aspx?ContentsId=<%#Eval("ID") %>" style="text-decoration: none;
font-size: 13px; color: #0C0;" title='<%#Eval("ProductName").ToString()%>'>
<asp:Image ID="imgProphoto" runat="server" ImageUrl='<%#Eval("ProductPhoto1") %>'
Width="140" Height="110" border="0" /></a>
<div style="width: 150px; height: 30px; text-align: center;">
<a href="OrganicBase.aspx?ContentsId=<%#Eval("ID") %>" style="text-decoration: none;
font-size: 13px; color: #0C0;" title='<%#Eval("ProductName").ToString()%>'>
<%# StringOperating.NoHTML(Eval("ProductName").ToString(),8)%></a>
</div>
</div>
</div>
</ItemTemplate>
</asp:DataList>