(本例)URL:http://www.itnotes.cc:80/example.html?ver=1.0&id=1#hash 用js获得其中的各个部分 1、window.location.href 整个URl字符串(在浏览器中就是…
http中实现页面跳转
1<meta http-equiv="refresh" content="0; url="> content=”0; URL=”,0表示没有延时,直接跳转到后面的U…
C#对Url中文进行编码和解码
string sEncode = System.Web.HttpUtility.UrlEncode("测试"); string sDecode = System.Web.HttpUtility.UrlDecode(sEncode);
SQL2000删除用户时提示: 因为选定的用户拥有对象,所以无法除去该用户
现象: 还原数据库后,要把数据库中的用户删除掉,出现提示: 因为选定的用户拥有对象,所以无法除去该用户。 解决办法: 1、打开企业管理器,展开服务器,右键点击本地服务器,选择“属性”: 2、选择“服务器设置”选项卡,勾选“允许对系统目录直接…
在SQL中获取随机数-rand()
1、随机小数: select rand() 2、随机0-99之间的的整数: select cast( floor(rand()*100) as int) 3、随机1-100之间的整数: select cast(ceiling(rand() …
JS获取屏幕(浏览器)可视区域的宽度高度
网页可见区域宽: document.body.clientWidth; 网页可见区域高: document.body.clientHeight; 网页可见区域高: document.body.offsetWidth; //包括边线的宽 网…
Windows Server 2008 R2 密钥/激活码-无须破解
无需破解:Windows Server 2008 R2 至少免费使用 900天。亲测有效!
C#中Page执行顺序:OnPreInit()、OnInit()…
当页面进行回发时,如点击按钮,以上事件都会重新执行一次,这时的执行顺序为:1. OnPreInit,2. OnInit,3. OnInitComplete,4. OnPreLoad,5. Page_Load,6. OnLoad,7. But…
MS SQL中,查询数据库的大小和各个表的大小
查询数据库的大小 1EXEC sp_spaceused 为了保证查询结果的实时性,推荐使用 @updateusage 参数来确保统计数据是最新的 1EXEC sp_spaceused @updateusage = N'TRUE'; 具体查询…
c#MD5加密
方法一: 123456789101112public string MD5Encrypt(string str) { MD5CryptoServiceProvider md5Hasher = new MD5Cryp…