摘要://在当前页面打开location.href="http://www.google.cn/";window.location.href="http://www.google.cn/";//后退到前一页面history.go(-1);//在新页面打开window.open('http://www.google.cn/','','height=500,width=611,scrollbars=yes,...
阅读全文
摘要:1. javaScript函数中执行C#代码中的函数: 方法一:1、首先建立一个按钮,在后台将调用或处理的内容写入button_click中; 2、在前台写一个js函数,内容为document.getElementById("btn1").click(); 3、在前台或后台调用js函数,激发click事件,等于访问后台c#函数;方法二:1、函数声明为public 后台代码(把public改成pro...
阅读全文
摘要:1:添加log4net.dll引用2:建Log4Net.config 包含具体设置参数3: Global.asax protected void Application_Start(object sender, EventArgs e) { log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(Serve...
阅读全文
摘要:1,写log之前一定要初始化配置文档,相关代码如下:view sourceprint?1log4net.Config.XmlConfigurator.Configure(); //默认的 23log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(System.Web.HttpContext.Current.S...
阅读全文