posts - 4,  comments - 3,  trackbacks - 0
  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 叶子绿了 阅读(104) | 评论 (0)编辑
  2007年11月20日
做个备份:
TransactionOptions TransOpt = new TransactionOptions();
        TransOpt.IsolationLevel 
= System.Transactions.IsolationLevel.ReadCommitted; 
        TransOpt.Timeout 
= new  TimeSpan(020);
        
using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, TransOpt))
        
{
            
//int tgroupid = tgroup.Add(tgroupinfo);操作
            
//usersinfo.TgroupID = tgroupid;
            
//users.Add(usersinfo);
            scope.Complete();
        }
posted @ 2007-11-20 11:21 叶子绿了 阅读(22) | 评论 (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)编辑
<2008年8月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

与我联系

搜索

 

常用链接

留言簿

我参加的小组

随笔档案

文章分类

收藏夹

学习资源

最新评论

阅读排行榜

评论排行榜