摘要:1. Stack 堆栈 Stack s1 = new Stack(); s1.Push(1); s1.Push(2); s1.Push(3); Console.WriteLine(s1.Pop()); Console.WriteLine(s1.Pop()); Console.WriteLine... 阅读全文
20140909_委托
2014-09-09 14:16 by sunny_fan, 113 阅读, 0 推荐, 收藏,
摘要:1. 定义委托 public delegate void GreenPeople(string name);2. 声明方法 public static void ChinesePeople(string Name) { Console.WriteLine("你好," + Name); } publi... 阅读全文
20140909_ADO.net
2014-09-09 09:07 by sunny_fan, 137 阅读, 0 推荐, 收藏,
摘要:string sqlcommand; string TextValue = TextBox1.Text.Trim(); SqlConnection sqlConnection = new SqlConnection("Data Source=61.155.215.29;Initial Cat... 阅读全文
20140826_cookies&Session操作
2014-08-26 08:54 by sunny_fan, 140 阅读, 0 推荐, 收藏,
摘要:HttpCookie cookie = HttpContext.Current.Request.Cookies["__shareuser"] ?? new HttpCookie("__shareuser");//检查是否存在 __shareuser Cookie如果不存在 ,新增一个cookie.V... 阅读全文
20140821_JQUERY学习日记 attr()
2014-08-21 11:32 by sunny_fan, 133 阅读, 0 推荐, 收藏,
摘要:1.attr(attribute)$("img").attr("width"); //取img标签中width属性值2.attr(attribute,value)$("#abc").attr("placeholder", ""); //将abc对象的placeholder赋值为空3.attr(att... 阅读全文
20140818_Dictionary
2014-08-18 08:55 by sunny_fan, 123 阅读, 0 推荐, 收藏,
摘要:一. 定义Dictionary: public static readonly Dictionary dictionary = new Dictionary(); #region 单实例 public static readonly object syncroot = new object(); p... 阅读全文
20140812_Cookies操作
2014-08-12 17:22 by sunny_fan, 188 阅读, 0 推荐, 收藏,
摘要:1. http Cookies赋值: HttpCookie cookies; cookies = new HttpCookie("Fanfenghua"); cookies.Values.Add("Name", "Fanfenghua"); //添加值 cookies.Values.Add("Ag... 阅读全文
20140808_html+js学习
2014-08-08 13:56 by sunny_fan, 131 阅读, 0 推荐, 收藏,
摘要:1. background:url(Images/cry.png) 0 0 no-repeatbackground:url(../images/list01.png) no-repeat 0 center;的意思是 图像地址 不重复 水平位置0 垂直位置居中2. 有序号的 test1 tes... 阅读全文
20140803_.net学习
2014-08-03 15:34 by sunny_fan, 200 阅读, 0 推荐, 收藏,
摘要:1. string.IsNullOrEmpty(X): 判断是否为空字符2. IsNullOrWhiteSpace(x):判断是否为空字符或空格字符3. Timespan: 表示两个时间之差, datetime dt1 = "2014/8/3 10:00:00".toDateTime(DateTim... 阅读全文
浙公网安备 33010602011771号