posts - 66,comments - 41,trackbacks - 0
          C#代碼
          1. if ((GridView1.Rows[i].RowState & DataControlRowState.Edit) == DataControlRowState.Edit)  {
          2.    //GridView為編輯狀態(tài)的操作
          3. } else {
          4.    //GridView為正常狀態(tài)的操作
          5.  }

          GridView1.Rows[i]只是表示取得當前行,若在GRIDVIEW的相關的事件中取得當前行方法可以為:e.Row.RowState


          文章來源:http://www.my1984.net/?action=show&id=112
          posted @ 2008-07-22 16:06 kylixlu 閱讀(167) | 評論 (0)編輯 收藏

               剛剛在看C#學習筆記,發(fā)現(xiàn)一個arity的單詞,好像以前接觸過,我還以為是書印刷錯的,經(jīng)過放狗查詢,找到如下解釋:

          arity 元數(shù)  arity 是一個合成詞,源于如binary (arity=2)、tertiary (arity=3),等等中的后綴。


          文章來源:http://www.my1984.net/?action=show&id=105
          posted @ 2008-06-28 13:59 kylixlu 閱讀(222) | 評論 (0)編輯 收藏

          CodeSmith 4.1.2 專業(yè)版 破解下載地址



          文章來源:http://www.my1984.net/?action=show&id=96
          posted @ 2008-06-21 15:45 kylixlu 閱讀(555) | 評論 (0)編輯 收藏

          .NET設計模式,最近沒時間看了,先記錄一下,以后再看。

          http://terrylee.cnblogs.com/archive/2006/06/01/334911.html


          文章來源:http://www.my1984.net/?action=show&id=81
          posted @ 2008-05-28 22:01 kylixlu 閱讀(58) | 評論 (0)編輯 收藏

          //比較DateTime類型
             DateTime dt1=DateTime.Now;
             DateTime dt2=Convert.ToDateTime ("2006-11-09 18:04:11");
            
             if(dt1.CompareTo (dt2)< 0)  //CompareTo:0-兩者相等
              Response.Write ("<script>alert(\"dt1<dt2\");</script>");
             else
              Response.Write ("<script>alert(\"dt1>dt2\");</script>");

             
             //比較string
             DateTime dt3=DateTime.Now ;
             string strdt3=dt3.ToString ("yyyy-MM-dd HH:mm:ss");
             string strdt4="2006-11-09 18:04:11";
               
             //字符串比較時,主要把時間都轉換成yyyy-MM-dd HH:mm:ss的格式
             if (strdt3.CompareTo(strdt4)<0)//CompareTo:0-兩者相等
              Response.Write ("<script>alert(\"strdt3<strdt4\");</script>");
             else
              Response.Write ("<script>alert(\"strdt3>strdt4\");</script>");


          文章來源:http://www.my1984.net/?action=show&id=79
          posted @ 2008-05-27 10:31 kylixlu 閱讀(2908) | 評論 (0)編輯 收藏
          僅列出標題
          共14頁: First 上一頁 3 4 5 6 7 8 9 10 11 下一頁 Last 
          主站蜘蛛池模板: 嘉善县| 双桥区| 溧阳市| 古浪县| 岗巴县| 蒲江县| 旌德县| 阿勒泰市| 武功县| 从化市| 筠连县| 河北省| 高台县| 合山市| 西盟| 桂东县| 镇原县| 开江县| 和田县| 安塞县| 岳池县| 彰武县| 乌审旗| 西充县| 夏邑县| 清水河县| 会同县| 万全县| 苗栗县| 西充县| 嘉义县| 西平县| 焉耆| 遂溪县| 轮台县| 封丘县| 乌兰浩特市| 临江市| 新巴尔虎右旗| 会同县| 丁青县|