摘要: Asp.Net中使用正则表达式进行数据验证using System.Text.RegularExpressions;private bool checkMobile(string mobile){string regex0 = @"\d{11}"; string regex = @"(13[0-9]?|15[89])[0-9]{8}"; if (!Regex.IsMatch(mobile, regex0) || !Regex.IsMatch(mobile, regex)) { return false; }return true;}详细内容可参考 &qu 阅读全文
posted @ 2010-03-16 17:45 Jack Tang 阅读(245) 评论(0) 推荐(0) 编辑
摘要: wsdl.exe /l:cs /n:myNamespace /out:myFilename.cs http://www.abc.com/hello/hello.asmx?wsdl将生成的文件如myFilename.cs,通过CSC或者VBC编译工具,生成相应的Proxy Dll文件即可如:csc /target:library /out:"c:\proxy.dll" c:\proxy.cs wsdl /l:cs /n:BbsInterface /out:ForPngWebService.cs http://10.0.0.1/ForPngWebService.asmx?wsd 阅读全文
posted @ 2010-03-16 17:44 Jack Tang 阅读(4110) 评论(0) 推荐(0) 编辑
摘要: 字符串和Byte数组互换的两个方法适用环境:.net1. 使用Encoding类,字符集可以换成ASCII,UTF7等txtOutput.Text = System.Text.Encoding.UTF8.GetString(Encoding.UTF8.GetBytes(txtInput.Text));2. 使用Convert类// 当Convert.FromBase64String方法的参数的长度小于4或不是4的倍数时,将会抛出FormatException。txtOutput.Text = System.Convert.ToBase64String(Convert.FromBase64Str 阅读全文
posted @ 2010-03-16 17:43 Jack Tang 阅读(375) 评论(0) 推荐(0) 编辑
摘要: http://www.codeproject.com/KB/aspnet/DisableSubmitButton.aspxDisable ASP Button on Submit and capture the PostBack OnClick EventBy Christopher G. LasaterThis article describes how to disable a ASP button on click to prevent multiple clicks and still fire the button event on the server.override prote 阅读全文
posted @ 2010-03-16 17:43 Jack Tang 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Sql Server数据库迁移孤立用户的问题处理适用数据库: SQL Server 7.0、SQL Server 2000 和 SQL Server 2005表面现象: 对象名 ‘xxxx’ 无效 Login failed for user '%ls'. Server user '%.*ls' is not a valid user in database '%.*ls'. 服务器用户“%s”不是数据库“%s”中的有效用户。请先将该用户帐户添加到数据库中进一步的现象: 创建和以前用户相同帐号(如test),相同密码的帐号,还是不能访问属于以前用户 阅读全文
posted @ 2010-03-16 17:42 Jack Tang 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 潘正磊谈微软研发团队管理之道 http://www.infoq.com/cn/interviews/team-management-panzhenglei先给我们介绍一下你自己和你自己现在所做的事情吧? 我是在1992年大学一毕业就参加了微软,一开始是做开发程序员,就是Developer,最开始开发的项目是Microsoft Access,现在也是微软卖的很好的一款产品。在Access开发了几年之后,我转做另外一个产品叫Visual Interdev,那是我们微软第一款针对网络Web做的开发工具;那之后我在Visual Basic团队做Developer Manager,就是开发经理的职位,当 阅读全文
posted @ 2010-03-15 17:01 Jack Tang 阅读(551) 评论(0) 推荐(0) 编辑
摘要: 项目管理知识体系五大过程组 阅读全文
posted @ 2010-03-14 11:05 Jack Tang 阅读(594) 评论(2) 推荐(0) 编辑
摘要: 原文URL:http://www.microsoft.com/china/msdn/library/architecture/architecture/architecturetopic/bb266332.mspx?mfr=trueRJ:我们和许多对结构体系感兴趣的人都交谈过。好像几乎没有人是只做些设计而根本不编写代码的纯粹的架构师。多数人都是多面手:他们有时参与开发,有时进行架构设计。对于一直在做开发但打算更多进行架构方面构思的人,您有什么建议?SG:编写代码对于架构师而言是非常重要的。你不一定要签入生产代码,但要不断尝试新技术、新方法,并体会系统的工作方式。最近我并没有编写大量的生产代码, 阅读全文
posted @ 2010-03-03 17:50 Jack Tang 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 统一建模语言(UML) 版本 2.0 - 对模型驱动开发的支持http://www.ibm.com/developerworks/cn/rational/321_uml/养成良好的绘制 UML 序列图的习惯-序列图绘制技巧http://www.ibm.com/developerworks/cn/rational/tip-uml/index4.html如何绘制 UML 活动图(Activity Diagram)-记录您所作的一切http://www.ibm.com/developerworks/cn/rational/tip-drawuml/index.htmlUML 建模:创建活动图http: 阅读全文
posted @ 2010-03-03 17:44 Jack Tang 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Creating a Controller (C#)原文URL:http://www.asp.net/learn/mvc/tutorial-33-cs.aspx1. Using the Add Controller Menu Option 1.1 The easiest way to create a new controller is to right-click the Controllers... 阅读全文
posted @ 2010-03-01 16:41 Jack Tang 阅读(284) 评论(0) 推荐(0) 编辑