05 2013 档案

摘要:1 using System; 2 using System.Collections; 3 using System.Configuration; 4 using System.Data; 5 using System.Linq; 6 using System.Web; 7 using System.Web.Security; 8 using System.Web.UI; 9 using System.Web.UI.HtmlControls; 10 using System.Web.UI.WebControls; 11 using System.Web.UI.WebCont... 阅读全文
posted @ 2013-05-30 18:57 冰vs焰 阅读(812) 评论(0) 推荐(0)
摘要:1 IHttpModule向实现类提供模块初始化和处置事件。 2 IHttpModule包含兩個方法: 3 4 public void Init(HttpApplication context); 5 public void Dispose(); 6 7 Init():这个方法接受一个HttpApplication对象,HttpApplication代表了当前的应用程序,我们需要在这个方法内注册 HttpApplication对象暴露给客户端的事件。可见,这个方法仅仅是用来对事件进行注册,而实际的事件处理程序,需要我们另外写方法。 8 9 整个过程很好理解:10 11 1. ... 阅读全文
posted @ 2013-05-27 22:00 冰vs焰 阅读(249) 评论(0) 推荐(0)
摘要:1 string defaultPath = @"C:\Users\Administrator\Desktop\"; 2 public string GetDirPath() 3 { 4 FolderBrowserDialog dialog = new FolderBrowserDialog(); 5 dialog.Description = "请选择小图片的文件夹"; 6 dialog.SelectedPath = defaultPath; 7 if (dia... 阅读全文
posted @ 2013-05-18 17:44 冰vs焰 阅读(286) 评论(0) 推荐(0)
摘要:调用代码: 1 try 2 { 3 if (!string.IsNullOrEmpty(DirFile)) 4 { 5 List<string> dirs = ImageFile(DirFile); 6 foreach (var item in dirs) 7 { 8 ImageWatermark(item, water, comboBox... 阅读全文
posted @ 2013-05-18 17:39 冰vs焰 阅读(210) 评论(0) 推荐(0)
摘要:1 int pheight = ((imageFiles.Count / num) + 1) * (sheight); //计算大图高度 2 3 4 List<Rectangle> Rects = new List<Rectangle>(); 5 List<System.Drawing.Image> imgs = new List<System.Drawing.Image>(); 6 System.Drawing.Image img; 7 System.Drawing.Image... 阅读全文
posted @ 2013-05-18 17:34 冰vs焰 阅读(658) 评论(0) 推荐(0)
摘要:转自KwanChiLeung我相信所有的前端菜鸟在刚开始工作的时候都会和我一样,收到实现居中的需求。网上的CSS居中帖子不胜枚举,但大多都没有很好的总结(或者有好的但是我没运气碰到)今天就自己写一个吧,也算是对之前工作的总结。一、水平居中1.将元素水平居中(use margin & width property)css code: div.h_align{ border: 1px solid black; /*key code:*/ margin-left: auto; ... 阅读全文
posted @ 2013-05-18 17:18 冰vs焰 阅读(181) 评论(0) 推荐(0)
摘要:1 void GetCategory(DataSet ds, int ID) 2 { 3 var list = ds.Tables[0].AsEnumerable().Where(c => c.Field<int>("ParentID") == ID); 4 5 sb.Append("["); 6 7 8 foreach (DataRow item in list) 9 {10 sb.Append("{name:'" +... 阅读全文
posted @ 2013-05-18 17:04 冰vs焰 阅读(338) 评论(0) 推荐(0)
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 7 </head> 8 <body> 9 10 <canvas width="300px;" height="300px" id="canvas"></canvas>11 12 <div id="coord"&g 阅读全文
posted @ 2013-05-10 17:49 冰vs焰 阅读(304) 评论(0) 推荐(0)