
2008年3月18日
两列显示可以用DIV+CSS也可以用下面的方法
<table>
<asp:repeater id="myRepeater" runat="server">
<ItemTemplate>
<tr>
<td>
第一列
</td>
</ItemTemplate>
<AlternatingItemTemplate>
<td>
第二列
</td>
</tr>
</AlternatingItemTemplate>
</asp:repeater>
</table>
或者
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (i % 2 == 0)
{
e.Item.Controls.Add(new LiteralControl("</tr><tr>"));
}
i++;//每一条记录绑定的时候就会加1
}
posted @
2008-03-18 14:22 叶子绿了 阅读(51) |
评论 (1) |
编辑

2007年11月21日
摘要: pay.aspx<scriptlanguage="JavaScript"type="text/javascript">functionselectContract(id){varform=document.form1;form.elements("txtcontractid").value=id==undefined?"":id;}</script><table>...
阅读全文
posted @
2007-11-21 15:44 叶子绿了 阅读(108) |
评论 (0) |
编辑

2007年9月30日
Site.master的html是:
<div id="productSwitcher" >
<a id="list1" href="/default.aspx" >首 页 </a >
<a id="list2" href="/Purchase/buy.aspx" >管理一 </a >
<a id="list3" href="/Sale/sale.aspx" >管理二 </a >
<a id="list4" href="/Receipt/Receipt.aspx" >管理三 </a >
<a id="list5" href="/Storage/storage.aspx" >管理四 </a >
<a id="list6" href="/Finance/finance.aspx" >管理五 </a >
<a id="list7" href="/Account/SystemManage.aspx" >管理六 </a >
<div style="clear:both;" > </div >
</div >
引用site.master页面时,想跳到首页的时候 页面中的代码应该是这样的.
<a id="list1" href="/default.aspx" class="ontime" >首 页 </a >
即跳到哪个页面,该链接都会加一个class="ontime"
该如何实现呢?大家指教了
posted @
2007-09-30 16:08 叶子绿了 阅读(25) |
评论 (2) |
编辑