摘要: /// <summary> /// DataTable 数据分页 /// </summary> /// <param name="dt">数据源</param> /// <param name="PageIndex">第几页</param> /// <param name="PageSize">每页 阅读全文
posted @ 2020-09-10 13:58 奶茶先生 阅读(360) 评论(0) 推荐(1) 编辑
摘要: 首先放一个div容器当分页 <ul id="tbl"></ul> //这里的ul是动态的,js赋值 <div class="content" id="page" style="margin-top:500px;"></div> // 分页容器 然后页面JS(分为三部分) <script type=" 阅读全文
posted @ 2020-07-09 10:58 奶茶先生 阅读(1198) 评论(0) 推荐(0) 编辑
摘要: string AAAAA= "ABCD1234"; //取出字符串中所有的英文字母 string strSplit1 = Regex.Replace(AAAAA, "[a-z]", "", RegexOptions.IgnoreCase); //取出字符串中所有的数字 string strSplit 阅读全文
posted @ 2020-05-26 17:27 奶茶先生 阅读(3017) 评论(0) 推荐(0) 编辑
摘要: sql语句中的日期处理一.日期處理函數1.日期增減函數 dateadd(datepart,number,dtae) datepart:是規定應向日期的哪一部分返回新值的參數。下列是sql server支持的日期部分\縮寫及含義。 日期部分 縮寫 含義 year yy,yyyy 年份 quarter 阅读全文
posted @ 2020-05-14 10:49 奶茶先生 阅读(553) 评论(0) 推荐(0) 编辑
摘要: <input class="SL" value="0" sl="123" id="A"> 上面是一个input控件,class为SL,值为0,自定义属性sl为123,id为A <input class="SL" value="1" sl="456" id="B"> 上面是一个input控件,clas 阅读全文
posted @ 2020-03-12 15:36 奶茶先生 阅读(4993) 评论(0) 推荐(0) 编辑
摘要: #region 合并单元格 合并某一行的所有列 public static void GroupRow(GridView gridView) { for (int rowIndex = gridView.Rows.Count - 2; rowIndex >= 0; rowIndex--) { Gri 阅读全文
posted @ 2020-01-07 20:44 奶茶先生 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 1、js文件准备 jquery.table2excel.js 下载地址 https://github.com/rainabba/jquery-table2excel 2、页面中引入js插件 <script type="text/javascript" src="../js/jquery.table2 阅读全文
posted @ 2019-11-28 10:32 奶茶先生 阅读(3568) 评论(0) 推荐(0) 编辑
摘要: js提供了parseInt()和parseFloat()两个转换函数。前者把值转换成整数,后者把值转换成浮点数。只有对String类型调用这些方法,这两个函数才能正确运行;对其他类型返回的都是NaN(Not a Number)。 例: var count = 0; var a="5.1" var b 阅读全文
posted @ 2019-11-19 14:17 奶茶先生 阅读(12788) 评论(0) 推荐(0) 编辑
摘要: protected void btnSubmit_Click(object sender, EventArgs e) //按钮点击事件 { int a = 0; //(创建一个变量用来判断是否有选中) foreach (GridViewRow row in GridViewRowName.Rows) 阅读全文
posted @ 2019-11-06 14:09 奶茶先生 阅读(770) 评论(0) 推荐(0) 编辑
摘要: 1、ArrarList 转换为 string[] : ArrayList list = new ArrayList(); list.Add(“aaa”); list.Add(“bbb”); //转换成数组 string[] arrString = (string[])list.ToArray(typ 阅读全文
posted @ 2019-11-06 13:02 奶茶先生 阅读(10991) 评论(3) 推荐(1) 编辑