摘要: $.extend($.fn.validatebox.defaults.rules, { idcard : {// 验证身份证 validator : function(value) { return /^\d{15}(\d{2}[A-Za-z0-9])?$/i.test(value); }, message : '身份证号码格式不正确' }, minLength: { validator: function(value, param){ return value.length >= param[0]; }, message: '请输... 阅读全文
posted @ 2013-12-03 22:11 Magicam 阅读(381) 评论(0) 推荐(0) 编辑
摘要: Ajax Control Toolkit7.1005.0The Ajax Control Toolkit contains a rich set of controls that you can use to build highly responsive and interactive Ajax-enabled Web applications. The Ajax Control Toolkit contains more than 40 controls, including the AutoComplete, CollapsiblePanel, ColorPicker, MaskedEd 阅读全文
posted @ 2013-11-25 17:08 Magicam 阅读(512) 评论(0) 推荐(0) 编辑
摘要: The tail of the transaction log usually refers to the contents of the database's transaction log that has not been backed up. Basically, every time you perform a transaction log backup, you are backing up the tail of the transaction log.Then why all the fuss over this? Well, the complication sta 阅读全文
posted @ 2013-10-30 16:28 Magicam 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 权限问题,授权 给 root 所有sql 权限mysql> grant all privileges on *.* to root@"%" identified by ".";Query OK, 0 rows affected (0.00 sec)mysql> flush privileges;Query OK, 0 rows affected (0.00 sec) 阅读全文
posted @ 2013-07-22 21:04 Magicam 阅读(111553) 评论(12) 推荐(18) 编辑
摘要: 调用系统cmd文件夹共享:string share_cmd = "net share Deployment=C:\\Deployment /GRANT:Everyone,CHANGE";Deployment:共享名C:\\Deployment:共享文件夹路径/GRANT:Everyone,CHANGE everyone可读可写调用vs cmdstring[] cmd = new string[2];cmd[0] = "cd /d \"C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\\& 阅读全文
posted @ 2011-10-28 10:13 Magicam 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 1. 去下载mysql的ODBC驱动。地址:http://dev.mysql.com/downloads/connector/odbc/3.51.html2. 安装该驱动,一路点next就行,路径都不用选的3. 启动mysql和sqlserver2k4. 从控制面板->性能和维护->管理工具中打开“数据源(ODBC)”(这是分类视图的情况,如果是经典视图,直接从控制面板里打开管理工具),出现ODBC数据源管理器5. 点“添加”按钮,在弹出的对话框里选择“MySQL ODBC 3.51 Driver”,然后点“完成”6. 此时弹出Connector/ODBC配置对话框,填入相关信息之 阅读全文
posted @ 2011-07-14 11:34 Magicam 阅读(310) 评论(0) 推荐(0) 编辑
摘要: setup has found an error before Microsoft Visual Studio 2005 Tools for Applications SDK February 2007 could be installed.You need to restart the installer to try again.Error Type: Microsoft.VisualStudio.Sdk.Setup.MissingPrerequisiteExceptionError message: You must have Visual Studio 2005 Standard Ed 阅读全文
posted @ 2011-05-21 21:09 Magicam 阅读(1352) 评论(4) 推荐(0) 编辑
摘要: 在项目里面选择WEB工程,单击属性找到WEB属性,去掉SILVERLIGHT 阅读全文
posted @ 2011-04-07 16:59 Magicam 阅读(222) 评论(0) 推荐(0) 编辑
摘要: <SCRIPTLANGUAGE="JavaScript">varmyDate=newDate();myDate.getYear();//获取当前年份(2位)myDate.getFullYear();//获取完整的年份(4位,1970-????)myDate.getMonth();//获取当前月份(0-11,0代表1月)myDate.getDate();//获取当前日(1-31)myDate.getDay();//获取当前星期X(0-6,0代表星期天)myDate.getTime();//获取当前时间(从1970.1.1开始的毫秒数)myDate.getHours 阅读全文
posted @ 2011-02-28 09:52 Magicam 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 在Asp.net AJAX 1.0 RTM版中,使用FrameSet或Iframe时,frame或iframe的frameborder属性应使用1 或 0,如:frameborder="0"而不能使用yes 或 no,如:frameborder="no"否则AJAX 1.0会出现如下脚本错误:Sys.ArgumentOutOfRangeException: Value must be an integer.Parameter name: xActual value was NaN. 阅读全文
posted @ 2011-01-27 10:20 Magicam 阅读(316) 评论(0) 推荐(0) 编辑