摘要:
有如下数组 var infoArray = strTest.split(";"); var points2; for (var i = 0; i < infoArray.length; i++) { var info = infoArray[i]; points2 = info + "," + ... 阅读全文
摘要:
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=cur... 阅读全文
摘要:
1、最简单最常用的方法,以一个指定的字符进行的分割 string s="abcdeabcdeabcde"; string[] sArray=s.Split('c'); foreach(string i in sArray) Console.WriteLine(i.ToString()); 输出下面的结果: ab deab ... 阅读全文
摘要:
//2008年4月24日 System.DateTime.Now.ToString("D"); //2008-4-24 System.DateTime.Now.ToString("d"); //2008年4月24日 16:30:15 System.DateTime.Now.ToString("F"); //2008年4月24日 16:30 S... 阅读全文
摘要:
//下载照片 private static void DownFileByUrl(string url,string chatid,int time) { Stream reader = null; FileStream stream = null; try { WebRequest request = ... 阅读全文
摘要:
string[] strImage = Directory.GetFiles(Server.MapPath("~/userphoto/")); DataTable dt_image = new DataTable();dt_image.Columns.Add("images");foreach (string str in strImage){ string strUrl = "userph... 阅读全文
摘要:
GridViewRow Row = (GridViewRow)((e.CommandSource as Button).NamingContainer); 阅读全文
摘要:
GridView在生成HTML代码的时候会自动加上style="border-collapse:collapse;"以及border=1,rules="all"这些属性,这些在IE下都没什么影响,但是在FF下就会影响显示,style="border-collapse:collapse;";是由于设置了CellSpacing="0"产生的,当设置CellSpacing="1"后就没有,可以去掉sty... 阅读全文
摘要:
protected void bindhbdata(string chatid){ string sql = "select * from staff where wechatid='"+ chatid +"'"; SqlDataReader dr = SqlHelper.ExecuteReader(SqlHelper.mycon, CommandType.Text, sql);... 阅读全文
摘要:
lis ars a-查看号码规则 disp port 端口号码-查看端口信息 lis public trunk *-查看主叫 disp inc trunk *-查看被叫 stat trunk *-查看中继状态 mon trunk *-查看实时中继使用率 阅读全文