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

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


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

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

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


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

          CodeSmith 4.1.2 專業版 破解下載地址



          文章來源:http://www.my1984.net/?action=show&id=96
          posted @ 2008-06-21 15:45 kylixlu 閱讀(563) | 評論 (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 閱讀(61) | 評論 (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 閱讀(2911) | 評論 (0)編輯 收藏
          僅列出標題
          共14頁: First 上一頁 3 4 5 6 7 8 9 10 11 下一頁 Last 
          主站蜘蛛池模板: 宁都县| 永春县| 沈阳市| 克拉玛依市| 怀柔区| 清远市| 堆龙德庆县| 班戈县| 房产| 泉州市| 安陆市| 若尔盖县| 商南县| 北安市| 洪洞县| 桃园县| 洛浦县| 阿坝| 石家庄市| 体育| 永平县| 且末县| 高陵县| 郎溪县| 北海市| 商丘市| 阿巴嘎旗| 眉山市| 阿城市| 府谷县| 武陟县| 朝阳市| 德庆县| 迭部县| 图们市| 高陵县| 和政县| 嫩江县| 新泰市| 双峰县| 什邡市|