我在做datalist绑定数据库的时候 设置了列数为5列,,现在怎么样设置列与列之间的距离??
解决方案 »
- 大侠们!国内asp.net平台知名博客,有哪些啊?
- 关于在vs2010中建立网站的系统自动生成的web.config配置文件
- 在VS中如何用查的与替换中的正则功能 ,我用:(?<!用户)(类型)+ 找不到内容
- OleDbCommand操作数据库 ExecuteScalar返回值最大长度是255
- C#.Web TreeView问题,如何保持树的状态?[样式,数据源]
- 报表中显示多个表的字段(vs2005,sql2005)
- 服务器突然不能支持asp.net了,htm文件还能正常访问,why?? 急!!!
- System.ArgumentOutOfRangeException: 指定的参数已超出有效值的范围。
- 相对位置??????????????????
- 20M的ACCESS数据库空间大约有多大?能存放多少个表?多少条记录?
- datagrid中取控件数据时取不到
- 从ds删除重复的行
<asp:DataList ID ="Dlist" runat ="server" OnItemCommand ="sentMes" DataKeyField="BNK_CODE">
<HeaderTemplate >
<table width="400" border="1">
</HeaderTemplate>
<ItemTemplate>
<tr>
<td align="center" style="width: 100px">
<asp:LinkButton ID ="BankCode" runat ="server">
<%#Container.DataItem("BNK_CODE")%>
</asp:LinkButton>
</td>
<td width="150" align="center">
<asp:Label ID="lbl_name" Text ='<%#Container.DataItem("BNK_NAME")%>' runat="server"></asp:Label>
</td>
<td width="150" align="center">
<asp:Label ID="lbl_namek" Text ='<%#Container.DataItem("BNK_NAMEK")%>' runat="server"></asp:Label>
</td>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr bgcolor="#ffccff">
<td align="center" style="width: 100px">
<asp:LinkButton ID ="BankCode" runat ="server">
<%#Container.DataItem("BNK_CODE")%>
</asp:LinkButton>
</td>
<td width="150" align="center">
<asp:Label ID="lbl_name" Text ='<%#Container.DataItem("BNK_NAME")%>' runat="server"></asp:Label>
</td>
<td width="150" align="center">
<asp:Label ID="lbl_namek" Text ='<%#Container.DataItem("BNK_NAMEK")%>' runat="server"></asp:Label>
</td>
</tr>
</AlternatingItemTemplate>
<FooterTemplate >
</table>
</FooterTemplate>
</asp:DataList>