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 阅读(153) | 评论 (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 阅读(214) | 评论 (0)编辑 收藏

CodeSmith 4.1.2 专业版 破解下载地址



文章来源:http://www.my1984.net/?action=show&id=96
posted @ 2008-06-21 15:45 kylixlu 阅读(544) | 评论 (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 阅读(49) | 评论 (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 阅读(2895) | 评论 (0)编辑 收藏
仅列出标题
共14页: First 上一页 3 4 5 6 7 8 9 10 11 下一页 Last