摘要:
很多文章都有写到Hashtable有内部的排序机制,如果要自定义排序的话就要自己写算法来实现的:听起来很抽象,我一向喜欢简单实用的东西,我下面就来总结总结怎样来实现自定义排序Hashtable.先看看普通的Hashtable的基本实现:publicstaticvoidMain(){Hashtable... 阅读全文
摘要:
第一种,把Array数组绑到dropdownlist程序代码string[] Month =new string[7]{ "January", "February", "March", "April", "May", "June", "July" };this.DropDownList1.DataS... 阅读全文
摘要:
类名:public class Messageback{ public string errcode { get; set; } public string errmsg { get; set; }}public class MessageInfo{ public string t... 阅读全文
摘要:
一、一维: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[,] ... 阅读全文
摘要:
比如建立一个名为aspcn,值为灌水小鱼的cookieHttpCookie cookie = new HttpCookie["aspcn"];cookie.Value = "灌水小鱼";Response.AppendCookie(cookie);取出Cookie值也很简单HttpCookie coo... 阅读全文
摘要:
string [] str = deptid.Split(','); int[] wxdepid = new int[str.Count()]; for(int i=0;i<wxdepid.Count();i++) { wxdepid[... 阅读全文
摘要:
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... 阅读全文
摘要:
public string GetPage(string posturl, string postData) { Stream outstream = null; Stream instream = null; StreamReader sr = nu... 阅读全文
摘要:
protected string GetJson(string url) { WebClient wc = new WebClient(); wc.Credentials = CredentialCache.DefaultCredentials; wc... 阅读全文
摘要:
后台: foreach (DataListItem item in dlContent.Items){ System.Web.UI.WebControls.Image img = (System.Web.UI.WebControls.Image)item.FindControl("userphoto"); string fileName = Request.PhysicalAppli... 阅读全文