摘要: 1 function Ajax(url) { 2 //url请求地址 3 var m_xmlReq = null; 4 if (window.ActiveXObject) { 5 try { 6 m_xmlReq = new ActiveXObject('Msxml2.XMLHTTP'); 7 } 8 catch (e) { 9 try {10 m_xmlReq = new ActiveXObject('Microsoft.XMLHTTP');11 }12 catch (e) {13 14 }15 }16 }17 else if... 阅读全文
posted @ 2012-07-19 14:05 Viky 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 此方法IE & FF都能正常工作。1 document.getElementById('iframeID').contentWindow.iframefunction(); 阅读全文
posted @ 2012-08-11 16:45 Viky 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1 public class AntiSqlInject 2 { 3 public HttpRequest Request; 4 5 public AntiSqlInject(HttpRequest requestPage) 6 { 7 Request = requestPage; 8 } 9 10 public bool CheckBadQuery()11 {12 //整串字符对比方法13 if (Request.... 阅读全文
posted @ 2012-07-20 10:54 Viky 阅读(2481) 评论(1) 推荐(0) 编辑
摘要: 1、项目中添加一个配置文件Log4Net.config<?xml version="1.0" encoding="UTF-8"?> <log4net debug="false"> <!--按日期分割日志文件 一天一个--> <appender name="LogFileAppenderByDate" type="log4net.Appender.RollingFileAppender" > <!--是否续写--> <param n 阅读全文
posted @ 2012-03-12 16:15 Viky 阅读(501) 评论(2) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-03-09 10:58 Viky 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1、获取Return返回值1 create procedure mySql2 @a int,3 @b int4 as5 return @a+@b6 go 1 SqlConnection conn=new SqlConnection(ConfigurationManager.ConnectioniString["localServer"].ToString()); 2 conn.Open(); 3 SqlCommand cmd=new SqlCommand("mySql",conn); 4 cmd.CommandType=CommandType.Store 阅读全文
posted @ 2012-03-08 09:53 Viky 阅读(450) 评论(3) 推荐(0) 编辑