佬唐

博客园 首页 新随笔 联系 订阅 管理

2009年2月28日 #

摘要: 一、自制SQL中的Trim函数/*转自:李战(leadzen),SQL2005可用varchar(max)*/create function trim(@s varchar(8000))returns varchar(8000)asbegin declare @r varchar(8000) dec... 阅读全文
posted @ 2009-02-28 11:04 佬唐 阅读(143) 评论(0) 推荐(0)

2009年2月27日 #

摘要: 数据库信任连接之帐号:连接字符串:Data Source=.;Initial Catalog=数据库名;Integrated Security=TrueWindows XP : ASPNET 用户Windows 2003: NT AUTHORITY/NETWORK SERVICE 用户OK! 阅读全文
posted @ 2009-02-27 21:44 佬唐 阅读(243) 评论(0) 推荐(0)

2009年2月18日 #

摘要: 晕死,第一天学CodeSmith,一步一步按例子抄来,开始两个Hello例子没任何问题,学第三个用到SchemaExplorer和例子时,出错,12个!----------------------------------------error CS1001: 应输入标识符error CS1513: ... 阅读全文
posted @ 2009-02-18 11:06 佬唐 阅读(203) 评论(0) 推荐(0)

2009年2月11日 #

摘要: javascript正则表达式 var reg=/^[a-z]$/;reg.test(str); 阅读全文
posted @ 2009-02-11 13:38 佬唐 阅读(113) 评论(0) 推荐(0)

2009年1月20日 #

摘要: 一、WebServices中:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;using System.IO; //加的... 阅读全文
posted @ 2009-01-20 23:52 佬唐 阅读(153) 评论(0) 推荐(0)

摘要: Web.config的add下的type如何写? 阅读全文
posted @ 2009-01-20 14:35 佬唐 阅读(146) 评论(0) 推荐(0)

2009年1月17日 #

摘要: 一、rss标准简单示例 rss的title http://www.xxx.com rss的description item1的title http://www.xxx.com/xx/xxx.shtml item1的description ... 阅读全文
posted @ 2009-01-17 16:11 佬唐 阅读(148) 评论(0) 推荐(0)

2009年1月10日 #

摘要: 注册时检测用户是否已存在(自定义验证控件+jQuery.Ajax)本想在自定义验证控件(asp:CustomValidator)的客户端验证属性里(ClientValidationFunction)来写ajax访问的,若存在则让它的arguments.IsValid=!用户存在,但无奈ajax是异步... 阅读全文
posted @ 2009-01-10 11:12 佬唐 阅读(350) 评论(0) 推荐(0)

2009年1月8日 #

摘要: public const string EmailAddressRegex = @"^([a-zA-Z0-9_'+*$%/^&!/./-])+/@(([a-zA-Z0-9/-])+/.)+([a-zA-Z0-9:]{2,4})+$"; public const string Curr... 阅读全文
posted @ 2009-01-08 11:39 佬唐 阅读(205) 评论(0) 推荐(0)

2008年12月31日 #

摘要: 这里是删除效果!我是按钮,可不用“input_type=button”图片分块地图 阅读全文
posted @ 2008-12-31 13:30 佬唐 阅读(152) 评论(0) 推荐(0)