摘要: //记得加 folderBrowserDialog1 openFileDialog1 控件using System.Data.SqlClient; //连接数据库 公共变量namespace WindowsApplication1.GoodMenhod{ class getSqlConnection { string sql = "server=.;database=ceshiDB;uid=sa;pwd=sa"; //数据库连接字符串 SqlConnection conn; public SqlCon... 阅读全文
posted @ 2013-01-30 11:13 ◆◇ 、资深程序员`` 阅读(229) 评论(0) 推荐(0)
摘要: //设为首页function SetHome(obj,url){ try{ obj.style.behavior='url(#default#homepage)'; obj.setHomePage(url); }catch(e){ if(window.netscape){ try{ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); }catch(e){ ... 阅读全文
posted @ 2013-01-30 11:09 ◆◇ 、资深程序员`` 阅读(188) 评论(0) 推荐(0)
摘要: 想要实现文件放盗链的功能首先添加一个全局文件Global.asax在Application_BeginRequest中我们可以判断Http报文头中的UrlReferre是否来源本站。if (HttpContext.Current.Request.UrlReferrer != null){if (HttpContext.Current.Request.Url.AbsolutePath.EndsWith("jpg", StringComparison.OrdinalIgnoreCase) && HttpContext.Current.Request.UrlRef 阅读全文
posted @ 2013-01-24 14:33 ◆◇ 、资深程序员`` 阅读(528) 评论(0) 推荐(0)