- 博客(38)
- 资源 (2)
- 收藏
- 关注
转载 JS图片切换
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> JS图片切换 var $_ = function (id) { return "string" == typeof id ? document.getEle
2012-06-13 13:57:09
739
转载 GridView的行删除、修改
前台 ' CommandName="Up">修改 ' CommandName="Del" OnClientClick="return confirm('确认要删除此行信息吗?')">删除
2012-06-09 10:56:24
480
转载 .net发布静态页面滚动条
void Initial() { string html = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> http://www.w3.org/1999/xhtml\">" +"" +"" +"" +"" +"" +" " +"" +""
2011-10-21 10:32:16
404
转载 保存为 .bat 文件 批处理
forfiles /p E:\DataBak\all /m *.bak -d -3 /c "cmd /c del /f @path 删除当前时间的前三天所有E:\DataBak\all 路径下的bak文件 forfiles /p E:\DataBak\all /m
2011-10-10 15:01:10
601
转载 SQL语句自己汇总
备份并压缩数据库: backup database huilinfoodgroup to disk = n'd:\huilinfoodgroup_backup_2011_10_10_143947_0781250.bak' with noformat, noinit,
2011-10-10 14:51:59
283
转载 .net发布静态页面代码
/// /// 保存远程文件 .net发布静态页面代码 /// /// 远程url: http://www.hao123.com> /// 保存到的路径: G:/hao123.html /// string p
2011-09-13 14:26:52
519
转载 YahooWeather—WeatherService
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using S
2011-09-10 15:45:09
728
转载 天气预报接口(中国天气网)
方法1:天气预报接口(中国天气网) 中国天气weather.comhttp://m.weather.com.cn/data/101110101.html(六天预报)http://www.weather.com.cn/data/sk/101110101.html(实
2011-08-26 13:53:29
1936
原创 c# 根据IP判断地址类
using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Web;namespace Kx.Core.Helper.Common
2011-08-18 13:36:05
1740
1
转载 .net 抓取页面内容查询IP
string ip = "60.191.41.19"; string url = "http://tool.chinaz.com/ip?ip=" + ip; byte[] b = new WebClient().Download
2011-08-18 10:41:22
623
转载 js天气预报 js版天气预报接口
调用 MiniSite.Weather.print("Wealth"); 样式 .Weather a{ font-size:
2011-08-10 14:53:51
6737
转载 Asp.Net自定义控件分页功能
前台页面 样式 /*分页*/.pageclass{width: 100%;margin-top:8px;}.pageclass ul{float:left;}.pageclass li{color: #C1DEF7; float: left; background: #C1DEF7; border: 1px solid #8BC5
2011-06-25 13:11:00
874
原创 Server.MapPath()
Server.MapPath() ./当前目录/网站主目录../上层目录~/网站虚拟目录如果当前的网站目录为E:/wwwroot 应用程序虚拟目录为E:/wwwroot/company 浏览的页面路径为E:/wwwroot/company/news/show.asp在show.asp页面中使用Server.MapPath("./") 返回路径为:E:/wwwroot/compan
2011-06-15 16:09:00
319
转载 存储过程中执行参数SQL语句
--计算总记录数 if (@SqlWhere= or @sqlWhere=NULL) set @sql = select @totalRecord = count(*) from + @TableName else set @sql = select @totalRecord = count(*) from + @TableName + with
2011-06-09 15:05:00
575
转载 图片横向滚动!!JS-鼠标可控制~~~
<br /> <div id="demo" style="overflow:hidden; width:720px; color:#333333; height:100px; margin:0px 0px 0 0; display:inline; float:left;" onmousemove="MoveDiv(event);" onmouseout="MoveOutDiv();"><br /> <div id="demo1" style="width:100%;"><br />
2011-03-05 13:49:00
1716
转载 Ajax 无刷主代码
<br /> <script type="text/javascript"><br /> <br /> function Ajax()<br /> {<br /> GetXmlHttpRequest();//创建XMLHttpRequest对象<br /> <br /> XmlHttp.open("POST","Ajax.ashx",true);//创建一个http请求,并指定此请求方法POST/GET,Url以及验证信息<br />
2010-11-11 20:51:00
464
转载 统计数据库中表个数 和 数据库中所有表的名字
<br />SELECT count(*) FROM sysobjects WHERE XTYPE='u' <br /> <br />SELECT name FROM sysobjects WHERE XTYPE='u'
2010-10-14 16:38:00
744
转载 a标签超链接点击后无虚边框
<br /><style type="text/css"><br />a{blr:expression(this.onFocus=this.blur())}<br /></style><br /> <br />a{ <br /> outline:none; /*移除超链的虚线框 IE8,FF有用*/ <br /> hide-focus: expression(this.hideFocus=true); /*IE6、IE7*/ <br />}
2010-10-04 18:57:00
978
转载 Excel 中数据邦定到GridView中
<br /> string conString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("Employees.xls") + ";Extended Properties='Excel 8.0;HDR=yes;'"; //string conString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = " + Server.MapP
2010-09-17 15:28:00
542
转载 Javascript QQ留言
<br /><p><a target=blank href=tencent://message/?uin=422095018&Site=常用Javascript特效(XuChangwei)&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:422095018:1 alt="点击这里给我发消息"></a></p>
2010-08-24 18:46:00
335
转载 sql增加字段、修改字段名、删除字段、修改表名、改存储过程名!!
<br /> <br />create table tb<br />(<br /> id int<br />)<br />--增加字段、修改字段名、删除字段、修改表名<br />alter table tb add name varchar(50)<br /> <br />sp_rename 'tb.name','name','column'<br /> <br />alter table tb drop column name<br /><br />sp_rename 'tb','tbs'<br /> <
2010-08-06 15:25:00
1656
转载 sql把结果集插入临时表的方法
<br />1----------select * into #orderby from ( select top 10 * from T_Lines ) table<br /> <br /> <br /> <br /> <br />2----------create table #orderby (fromarea varchar(100), toarea varchar(100))<br /><br />insert into #orderby (fromarea,toarea)<br />sele
2010-08-06 10:39:00
2957
转载 sql判断临时表是否存在和创建临时表的方法
if object_id('Tempdb..#orderby') is not nulldrop table #orderbyselect * into #orderby from T_Linesselect * from #orderbySQL Server创建临时表:创建临时表 方法一: create table #临时表名(字段1 约束条件, 字段2 约束条件, .....) create t
2010-08-06 09:08:00
3518
转载 Connection strings for SQL Server 2005 http://www.connectionstrings.com/
Standard SecurityData Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;Use serverName/instanceName as Data Source to connect to a specific SQL Server instance.Are you using SQL Server 2005 Express? Don't miss the ser
2010-08-04 10:36:00
670
转载 ASP.NET生成随机密码
<br />ASP.NET生成随机密码<br />在开发需要用户注册后才能使用提供的各项功能的应用程序时,在新用户提交注册信息后,较常见的做法是由程序生成随机密码,然后发送密码到用户注册时填写的电子信箱,用户再用收到的密码来激活其帐户。<br />实现ASP.NET生成随机密码功能是很容易的,下面的代码给出了完整的实现方法:<br />publicstaticstringMakePassword(stringpwdchars,intpwdlen)<br />{ <br />stringtmpstr="";
2010-08-04 10:29:00
338
转载 JavaScript弹出Div层(嵌入文字)- 可拖动+最小化
<br /><input type="button" onclick="fs()" /><mce:script language="javascript" type="text/javascript"><!--function fs(){var a = new DivWindow("1","窗口测试",580,400,"Welcome to visited my personal website:<br><a href="http://www.qqview.com" mce_hr
2010-08-02 19:46:00
808
转载 JavaScript弹出Div层(嵌入文字)- 可拖动
<br /><html><br /><head><br /><style><br />body{font-family:宋体; font-size:12px; padding:0px; margin:0px;}<br />.showWindow:hover{color:#FF0000}<br />.win_bg{background:#CCC; opacity:0.2; filter:alpha(opacity=20); position:absolute; left:0px; top:0px; width
2010-08-02 18:41:00
1687
转载 JavaScript弹出Div层(嵌入网页) -可拖动
<br /> <script language="javascript" type="text/javascript"><br /><br /> function Button1_onclick() {<br /> var url = 'http://www.baidu.com';<br /> var dialog = new Dialog(url, '运力信息', 700, 500);<br /> dialog.show();<br /> }<br /
2010-08-02 18:32:00
3683
转载 JavaScript是否构成直角三角形-斜边长度的平方等于其他两条边长的平方和
<br /> <mce:script type="text/javascript"><!-- var epsilon = 0.00000000001; // 一些需要测试的极小数字。// 测试整数的函数。function integerCheck(a, b, c) { // 测试。 if ( (a*a) == ((b*b) + (c*c)) ) return true; else { return false; }
2010-08-02 09:24:00
2856
转载 JAVASCRIPT去验证不能超过12个数字或英文或数字英文组合,还要求不能超过6个汉字,还要验证汉字和字母,数字的组合
<br /> <mce:script type="text/javascript"><!-- alert(getLength("af我sdaff"));function getLength(s){ var i,sum; sum=0; for(i=0;i<s.length;i++) { if ((s.charCodeAt(i)>=0) && (s.charCodeAt(i)<=255)) sum=sum+1; else sum=sum+2; } re
2010-08-01 16:43:00
1368
转载 过滤之间的代码
var regStr = new RegExp('(?:)((/n|/r|.)*?)(?:)', 'img');return str.replace(regStr,'');
2010-08-01 16:30:00
289
转载 分析一个JS面试题
<br />function foo(){ foo.abc = function(){alert('Alibaba')} this.abc = function(){alert('Alimama')} abc = function(){alert('Alipay')}; var abc = function(){alert('Taobao')}}foo.prototype.abc = function(){alert('Alisoft');}foo.abc = function(
2010-08-01 16:05:00
593
转载 全选,鼠标坐标,关闭窗口!
<br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml"><br /><head><br /><style><br />table{ border-collapse:collapse;width:100%; heigh
2010-08-01 15:55:00
433
转载 RadioButtonList邦定数据
<br /><br /> protected void Page_Load(object sender, EventArgs e)<br /> {<br /> if (!IsPostBack)<br /> {<br /> string name = Request.QueryString["votename"];<br /> Label1.Text = name;<br /> string id = R
2010-08-01 15:45:00
476
转载 右下角窗口并可关闭!
<br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml"><br /><head><br /><meta http-equiv="Content-Type" content="text/html; charset=gb
2010-07-31 16:00:00
558
转载 数据库常用对象查询
--查询用户表对象信息select Tab.Name as [表名],Tab.create_date as [创建时间],Tab.modify_date as [最后修改时间], Col.Name as [列名] ,Type.name as [数据类型],Col.max_length as [字段长度], CASE WHEN pk.is_primary_key= 1 THEN 'Y' ELSE 'N' end as [是否主键], CASE WHEN Col.
2010-07-30 16:12:00
448
转载 图片自动切换并改变链接代码
<br /> <br /> <br /><script language="javascript" type="text/javascript"><br />indeximg1 = new Image();<br />indeximg1.src="Image/Blue hills.jpg";<br />indexurl1 = 'http://www.baidu.com';<br />indextxt1 = '百度';<br /><br />indeximg2 = new Image();<br />inde
2010-07-30 15:49:00
1868
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人