摘要: 命名规则Ver3.0 2004年6月 本规则是为了增强开发人员所写程序的规范性、可读性而设计的。主要应用于.net开发的项目,3.0版以适用于VB、C#、C++等多种语言。 总体要求 1. 词语要求尽量的简练准确,有缩写的尽量用缩写; 2. 规则并非一成不变... 阅读全文
posted @ 2009-04-01 09:51 zxlin25 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 激活编辑器 激活编辑器的方法有两种。第一种方法是将整个文档设置为设计模式。第二种方法可以在浏览模式中使用,来使各个元素可在运行时编辑。如果想让整个文档可在浏览时进行编辑,则可以在文档正文上设置 contentEditable 属性。 将文档设置为设计模式 要将整个文档设置为设计模式... 阅读全文
posted @ 2009-03-30 15:25 zxlin25 阅读(1912) 评论(0) 推荐(0) 编辑
摘要: User talk:Zxlin25 From Wikipedia, the free encyclopedia Jump to: navigation, search [edit] Welcome to Wikipedia! Hello Zxlin25! Welcome to Wikipedia, a free and open-content encyclopedia. I hope... 阅读全文
posted @ 2009-03-29 11:47 zxlin25 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 前台代码: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 2 3 4 5 6 7 8 9 10 11 12 13学号:,姓... 阅读全文
posted @ 2009-03-24 21:21 zxlin25 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1:Response.Write("");返回上一页; 2:增加到收藏夹:javascript:window.external.addfavorite(“url”,“name”) 3:设置为主页:javascript:this.style.behavior='url(#default#homepa... 阅读全文
posted @ 2009-03-24 09:58 zxlin25 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Random myrd=new Random (); string filename = DateTime.Now.ToString().Replace("-","").Replace(":","").Replace(" ","") + myrd.Next(1000).ToString()... 阅读全文
posted @ 2009-03-24 09:55 zxlin25 阅读(282) 评论(0) 推荐(0) 编辑
摘要: jkj Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1usingSystem; 2usingSystem.Data; 3us... 阅读全文
posted @ 2009-03-24 09:19 zxlin25 阅读(662) 评论(0) 推荐(0) 编辑
摘要: 实例一: 实例二: 说明:没有在数据器的(repeater datalist gridview)前台绑定的 后台代码: public string GetList() { SqlData da = new SqlD... 阅读全文
posted @ 2009-03-23 17:09 zxlin25 阅读(194) 评论(0) 推荐(0) 编辑
摘要: CSS 文本属性 属性 描述 值 IE F N W3C color 设置文本颜色。 color 3 1 4 1 ... 阅读全文
posted @ 2009-03-19 09:20 zxlin25 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 5 6head内 7 8 9 10body内 11 12 22 23 24 ... 阅读全文
posted @ 2009-03-17 16:26 zxlin25 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Server.Transfer可以把页面上的一些数据传到其他的页面,而response.redirect只转入页面。 看看server。transfer的用法: A:页面代码: ' name="tp_id[]" id="tp_id[]" value='' /> cs代码: protected voi... 阅读全文
posted @ 2009-03-16 09:41 zxlin25 阅读(227) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1ReadWriteConfigConfig=newReadWriteConfi... 阅读全文
posted @ 2009-03-16 08:30 zxlin25 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 连接字符串中常用的声明有: 服务器声明 Data Source、Server和Addr等。 数据库声明 Initial Catalog和DataBase等。 集成Windows账号的安全性声明 Integrated Security和Trusted_Connection等。 使用数据库账号的安全性声... 阅读全文
posted @ 2009-03-11 16:05 zxlin25 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 附属国 阅读全文
posted @ 2009-03-11 09:26 zxlin25 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 用录制宏来做可能会比较简单。 现在我告诉你录制宏的方法: 第一、在打开的EXCEL表中选择一个空白单元格,然后按下工具--宏-录制新宏 第二、在跳出的对话框中指定一个快捷键ctrl+字母(必须是字母,比如ctrl+q),然后在后面的下拉菜单中指定该宏的使用范围,最后按下确定。 第三、按下菜... 阅读全文
posted @ 2009-03-10 19:22 zxlin25 阅读(241) 评论(0) 推荐(0) 编辑
摘要: ?:运算符号:条件运算符; condition ? first_expression : second_expression; 如果条件为 true,则计算第一表达式并以它的计算结果为准;如果为 false,则计算第二表达式并以它的计算结果为准。只计算两个表达式中的一个。 Co... 阅读全文
posted @ 2009-03-10 19:21 zxlin25 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 这样默认打开的页面就是选中状态; 阅读全文
posted @ 2009-03-10 19:12 zxlin25 阅读(1873) 评论(0) 推荐(0) 编辑
摘要: 一:通常我们把数据库的连接语句放在web.config中,因为这样便于修改,如果让在类库中,这样生成了dll就不方便修改了。 比如在web.config中增加数据库连接语句: 在类先要导入 using System.Configuration;(一般情况下增加类的时候自动导入) 然后C... 阅读全文
posted @ 2009-03-10 13:32 zxlin25 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 先看效果: 只需要前台代码即可: _bg.gif);' >//这部分是显示背景 这部分是显示数字 注意要+1不然就是从0开始了 阅读全文
posted @ 2009-03-10 09:18 zxlin25 阅读(343) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1protectedvoidPage_Load(objectsender,Eve... 阅读全文
posted @ 2009-03-09 19:13 zxlin25 阅读(446) 评论(0) 推荐(0) 编辑
摘要: asp.net防注入 一.如果参数全为数字: //检查字符串是否全为数字 publicstaticboolIsNum(stringStr) { boolblResult=true; if(Str=="") blResult=false; else { foreach(cha... 阅读全文
posted @ 2009-03-09 19:04 zxlin25 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 段落前面空两个字的距离,不要再使用空格了。应该使用首行缩进text-indent。 text-indent可以使得容器内首行缩进一定单位。比如中文段落一般每段前空两个汉字。 在这里我们需要了解一种长度单位em。em是相对长度单位。相对于当前对象内文本的字体尺寸。 我们中文段落一般每段前空两个汉... 阅读全文
posted @ 2009-03-09 09:11 zxlin25 阅读(1597) 评论(0) 推荐(0) 编辑
摘要: “select top 10* from Items”: 这个是什么意思呢?他等于从1--10条记录吗?答案可以肯定的说:False,因为top只是查询数据表中前面的10条记录,在一般情况下 top10 就是从1到10按顺序排列的,但是有时候 不是按顺寻排列呢?这时候top10 可能就出现的是 id... 阅读全文
posted @ 2009-03-05 17:23 zxlin25 阅读(2747) 评论(0) 推荐(0) 编辑
摘要: use votetest select name from sysobjects where xtype='U' -- u 用户定义的表 -- s 系统表 阅读全文
posted @ 2009-03-05 10:00 zxlin25 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 今天写了一个在投票栏目下增加主题的代码 看代码: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1usingSystem; ... 阅读全文
posted @ 2009-03-04 18:32 zxlin25 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 如何用javascript获取文本框,下拉框,单选框的对应值或者将值赋给它们? 雪原虎发布于:2007-10-22 00:32 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www... 阅读全文
posted @ 2009-03-03 22:00 zxlin25 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: Change picture Change name View your account Link other accounts sign out Our latest improvements ... 阅读全文
posted @ 2009-02-27 20:46 zxlin25 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1usingSystem; 2usingSystem.Collections.Ge... 阅读全文
posted @ 2009-02-27 15:24 zxlin25 阅读(2374) 评论(0) 推荐(0) 编辑
摘要: var fso, tf; fso = new ActiveXObject("Scripting.FileSystemObject"); // 创建新文件 tf = fso.CreateTextFile("c:""testfile.txt", true); // 填写数据,并增加... 阅读全文
posted @ 2009-02-27 13:27 zxlin25 阅读(724) 评论(0) 推荐(0) 编辑
摘要: Eval与DataBinder.Eval的区别 2009-02-20 15:35 DataBinder.Eval的基本格式 DataBinder.Eval(Container.DataItem,"XXX","{0}") 或者 还有一种据说微软说效率很高的方... 阅读全文
posted @ 2009-02-27 11:52 zxlin25 阅读(1563) 评论(1) 推荐(1) 编辑