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