上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页
摘要: Returning only the first N records in a SQL query differs quite a bit between database platforms. Here's some samples:Microsoft SQL ServerPostgreSQL and MySQLOracleSybaseFirebirdDue to these differenc... 阅读全文
posted @ 2010-06-25 12:47 Thinking.N 阅读(207) 评论(0) 推荐(0) 编辑
摘要: //校验是否全由数字组成function isDigit(s){var patrn=/^[0-9]{1,20}$/;if (!patrn.exec(s)) return falsereturn true}//校验登录名:只能输入5-20个以字母开头、可带数字、“_”、“.”的字串Java代码functionisRegisterUserName(s){... 阅读全文
posted @ 2010-06-10 14:53 Thinking.N 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 在.NET环境中使用单元测试工具Nunit作者:shanyou简介编写单元测试是一种验证行为,更是一种设计行为。同样,它更是一种编写文档的行为。编写单元测试避免了相当数量的反馈循环,尤其是功能验证方面的反馈循环。虽然由程序开发人员自己写UnitTests(单元测试)来测试自己写的程序代码已经行之有年,但是大部分的UnitTests都是写在主要的程序代码已经设计好、写好之后。大部分的程序开发人员都有... 阅读全文
posted @ 2010-06-09 10:19 Thinking.N 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 信道是跨远程处理边界(无论是在应用程序域、进程还是计算机之间)在应用程序之间传输消息的对象。信道可以在终结点上侦听入站消息,向另一个终结点发送出站消息,或者两者都可以。这使您能够插入各种各样的协议,即使信道的另一端上没有公共语言运行库。信道必须实现IChannel接口,该接口提供诸如ChannelName和ChannelPriority之类的信息性属性。专用于在特定端口上侦听特定协议的信道实现IC... 阅读全文
posted @ 2010-06-08 10:43 Thinking.N 阅读(402) 评论(0) 推荐(0) 编辑
摘要: HttpContext.Current.Request.Url.ToString() 并不可靠。如果当前URL为http://localhost/search.aspx?user=http://csharp.xdowns.com&tag=%BC%BC%CA%F5通过HttpContext.Current.Request.Url.ToString()获取到的却是http://localhos... 阅读全文
posted @ 2010-05-21 14:33 Thinking.N 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 代码http://developer.51cto.com/art/200909/149995.htm 阅读全文
posted @ 2010-05-21 13:01 Thinking.N 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 完成了svn服务器的安装配置,怎么使用svn呢?在Windows下,最常用的svn客户端是TortoiseSVN,有时简称为TSVN。TortoiseSVN安装可以从http://tortoisesvn.tigris.org/下载最新版,目前最新版是TortoiseSVN-1.5.6.14908。下载后,安装。重启机器,使目录图标生效。在资源管理器中,鼠标右键点击任意位置,右键菜单中出现̶... 阅读全文
posted @ 2010-04-29 09:17 Thinking.N 阅读(718) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--namespaceListMethod{publicpartialclass_Default:System.Web.UI.Page{protectedvoidPage_Load(objectsende... 阅读全文
posted @ 2010-03-15 17:21 Thinking.N 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//关于ASP.NET动态加载Master页面//首先创建一母版页Master.master/*<%@MasterLanguage="C#"AutoEventWireup="true"CodeF... 阅读全文
posted @ 2010-02-02 10:08 Thinking.N 阅读(794) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//关于ASP.NET页面类继承的问题//ASP.NET的后台代码CS是一个继承于System.Web.UI.Page的类//如果想写一公共的方法,如用Cookie或者Session判断用户是否登录系... 阅读全文
posted @ 2010-01-28 13:22 Thinking.N 阅读(467) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页