摘要: QueryString传值:1. 这是最简单的传值方式,但缺点是传的值会显示在浏览器的地址栏中且不能传递对象,只适用于传递简单的且安全性要求不高的整数值,例如:2. 新建一个WEB项目,添加一个页面命名为Test1,在页面中添加一个Button命名为btnLogin,再添加两个TextBox分别命名... 阅读全文
posted @ 2015-10-29 23:10 On The Way …… 阅读(315) 评论(0) 推荐(0) 编辑
摘要: delete和removeDelete的使用是 datatable.Rows[i].Delete();Remove的使用是datatable.Rows.Remove(datatable.Rows[i]);这两个的区别是,使用delete后,只是该行被标记为deleted,但是还存在,用Rows.Co... 阅读全文
posted @ 2015-10-29 22:52 On The Way …… 阅读(5395) 评论(0) 推荐(0) 编辑
摘要: public static string jsonForEasyui(string totalCount, DataTable dt) { StringBuilder builder = new StringBuilder(); builde... 阅读全文
posted @ 2015-10-29 22:21 On The Way …… 阅读(773) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static v... 阅读全文
posted @ 2015-10-29 16:48 On The Way …… 阅读(46671) 评论(1) 推荐(2) 编辑
摘要: 1、用字符串分隔:usingSystem.Text.RegularExpressions;stringstr="aaajsbbbjsccc";string[]sArray=Regex.Split(str,"js",RegexOptions.IgnoreCase);foreach(stringiins... 阅读全文
posted @ 2015-10-29 16:47 On The Way …… 阅读(259) 评论(0) 推荐(0) 编辑
摘要: staticvoid Main(string[] args){ string s =""; //(1)字符访问(下标访问s[i]) s ="ABCD"; Console.WriteLine(s[0]); // 输... 阅读全文
posted @ 2015-10-29 16:46 On The Way …… 阅读(156) 评论(0) 推荐(0) 编辑
摘要: System.DateTime currentTime=new System.DateTime();1 取当前年月日时分秒currentTime=System.DateTime.Now;2 取当前年int 年=currentTime.Year;3 取当前月int 月=currentTime.Mont... 阅读全文
posted @ 2015-10-29 16:41 On The Way …… 阅读(673) 评论(0) 推荐(0) 编辑