Y&歪

朝梦想前进!

2010年1月4日

GridView导出Excel 类库

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1usingSystem;2usingSystem.Data;3usingSystem.Configuration;4usingSystem.IO;5usingSystem.Web;6usingSys... 阅读全文

posted @ 2010-01-04 10:58 xinyu1020 阅读(294) 评论(0) 推荐(0) 编辑
'用户 'sa' 登录失败。该用户与可信 SQL Server 连接无关联

摘要: 今天,设置SQLSERVER帐号。结果报错,出错的原因是:'用户 'sa' 登录失败。该用户与可信 SQL Server 连接无关联'具体的方法是:1:打开SQL Server Manager管理器!在左面找到 ‘安全性’ 单击右键 选择‘新建”,“登录” 弹出一个对话框,在登录名中输入你的登录号,选择'SQLSERVER身份... 阅读全文

posted @ 2010-01-04 10:41 xinyu1020 阅读(527) 评论(0) 推荐(0) 编辑

2009年12月30日

Page-Enter、Page-Exit的使用

摘要: Page-Enter、Page-Exit是页面被载入和调出时的一些特效。用法:<Meta http-equiv="Page-Enter" Content="blendTrans(Duration=0.5)"><Meta http-equiv="Page-Exit" Content="blendTrans(Duration=0.5)">注意:blendTrans是动态滤镜的一... 阅读全文

posted @ 2009-12-30 17:33 xinyu1020 阅读(191) 评论(0) 推荐(0) 编辑
JavaScript验证大全

摘要: js验证表单大全1. 长度限制<script>function test() {if(document.a.b.value.length>50){alert("不能超过50个字符!");document.a.b.focus();return false;}}</script><form name=a onsubmit="return test()"><... 阅读全文

posted @ 2009-12-30 16:45 xinyu1020 阅读(6117) 评论(0) 推荐(0) 编辑

2009年12月28日

sqlserver行列转换

摘要: 1.假设有张学生成绩表(stdent)如下stdname stdSubject result 张三 语文 80 张三 数学 90 张三 物理 85 李四 语文 85 李四 数学 92 李四 物理 82想变成 姓名 语文 数学 物理张三 80 90 85李四 85 92 82CREATE TABLE student (stdname nvarchar(10),stdsubject nvarchar... 阅读全文

posted @ 2009-12-28 17:07 xinyu1020 阅读(148) 评论(0) 推荐(0) 编辑
Javascript中最常用的55个经典技巧

摘要: 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 <table border oncontextmenu=return(false)> <td>no </table> 可用于Table 2. <body onselectstart="return false"> 取消选取、防止复制... 阅读全文

posted @ 2009-12-28 15:24 xinyu1020 阅读(114) 评论(0) 推荐(0) 编辑

2009年11月13日

ASP.NET中TextBox控件的AutoCompleteType属性(不保存历史输入记录)

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2009-11-13 11:28 xinyu1020 阅读(13) 评论(0) 推荐(0) 编辑