07 2016 档案
ASPX页面添加验证码
摘要:protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack){ CreateCheckCodeImage(GenerateCheckCode());//调用下面两个方法; } } /// <summary> /// 生成 阅读全文
posted @ 2016-07-25 11:19 咖啡加点盐 阅读(1742) 评论(0) 推荐(0)
sql service 触发器,监控一个表有新数据插入时,把这条数据再插到另一个表
摘要:create trigger tri_Line on Linefor insertasbeginif (select count(1) from Line)=0beginprint '未插入数据'endelsebegininsert into LineSubset(LineName)select L 阅读全文
posted @ 2016-07-07 09:38 咖啡加点盐 阅读(684) 评论(0) 推荐(0)
Response.Write 乱码解决办法
摘要:Response.Write 之前加上下面两句话 HttpContext.Current.Response.ContentType = "text/html;charset=utf-8"; HttpContext.Current.Response.ContentEncoding = System.T 阅读全文
posted @ 2016-07-07 09:01 咖啡加点盐 阅读(2748) 评论(0) 推荐(0)
Url访问和让别人也可以在浏览器调试webservice
摘要:<webServices> <protocols> <add name="HttpGet" /> <add name="HttpPost" /> <add name="HttpPostLocalhost" /> <add name="Documentation" /> </protocols> </ 阅读全文
posted @ 2016-07-06 16:37 咖啡加点盐 阅读(329) 评论(0) 推荐(0)