摘要: 很多文章都有写到Hashtable有内部的排序机制,如果要自定义排序的话就要自己写算法来实现的:听起来很抽象,我一向喜欢简单实用的东西,我下面就来总结总结怎样来实现自定义排序Hashtable.先看看普通的Hashtable的基本实现:publicstaticvoidMain(){Hashtable... 阅读全文
posted @ 2015-11-16 17:28 皮皮木有小JJ 阅读(1249) 评论(0) 推荐(0) 编辑
摘要: 第一种,把Array数组绑到dropdownlist程序代码string[] Month =new string[7]{ "January", "February", "March", "April", "May", "June", "July" };this.DropDownList1.DataS... 阅读全文
posted @ 2015-11-06 17:06 皮皮木有小JJ 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 类名:public class Messageback{ public string errcode { get; set; } public string errmsg { get; set; }}public class MessageInfo{ public string t... 阅读全文
posted @ 2015-11-06 16:42 皮皮木有小JJ 阅读(2433) 评论(0) 推荐(0) 编辑
摘要: 一、一维:int[] numbers = new int[]{1,2,3,4,5,6}; //不定长int[] numbers = new int[3]{1,2,3};//定长二、多维int[,] numbers = new int[,]{{1,2,3},{1,2,3}}; //不定长int[,] ... 阅读全文
posted @ 2015-11-02 17:35 皮皮木有小JJ 阅读(4003) 评论(0) 推荐(0) 编辑
摘要: 比如建立一个名为aspcn,值为灌水小鱼的cookieHttpCookie cookie = new HttpCookie["aspcn"];cookie.Value = "灌水小鱼";Response.AppendCookie(cookie);取出Cookie值也很简单HttpCookie coo... 阅读全文
posted @ 2015-09-22 18:06 皮皮木有小JJ 阅读(143) 评论(0) 推荐(0) 编辑
摘要: string [] str = deptid.Split(','); int[] wxdepid = new int[str.Count()]; for(int i=0;i<wxdepid.Count();i++) { wxdepid[... 阅读全文
posted @ 2015-09-22 11:30 皮皮木有小JJ 阅读(702) 评论(0) 推荐(0) 编辑
摘要: set datefirst 1 select count(*) from (select date from(select dateadd(dd,number,'2015-01-01') date from master..spt_values where [type] = 'p' and numb... 阅读全文
posted @ 2015-09-02 17:09 皮皮木有小JJ 阅读(161) 评论(0) 推荐(0) 编辑
摘要: public string GetPage(string posturl, string postData) { Stream outstream = null; Stream instream = null; StreamReader sr = nu... 阅读全文
posted @ 2015-08-04 14:35 皮皮木有小JJ 阅读(1357) 评论(0) 推荐(0) 编辑
摘要: protected string GetJson(string url) { WebClient wc = new WebClient(); wc.Credentials = CredentialCache.DefaultCredentials; wc... 阅读全文
posted @ 2015-08-04 14:32 皮皮木有小JJ 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 后台: foreach (DataListItem item in dlContent.Items){ System.Web.UI.WebControls.Image img = (System.Web.UI.WebControls.Image)item.FindControl("userphoto"); string fileName = Request.PhysicalAppli... 阅读全文
posted @ 2015-07-16 16:45 皮皮木有小JJ 阅读(216) 评论(0) 推荐(0) 编辑