zwei1121

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页

2009年10月10日 #

摘要: string matchEvents = "<span class=\"mw-headline\">大事记</span></.*?</ul>"; string Events = Regex.Match(content, matchEvents, RegexOptions.Singleline).Value; 阅读全文
posted @ 2009-10-10 15:41 zwei 阅读(161) 评论(0) 推荐(0) 编辑

2009年9月27日 #

摘要: where asciistr(acolumn) not like '\%'asciistr()函数对非ASCII代码,会转换成二进制,且前面加\ ;所以asciistr(acolumn) 如果是汉字;转换出来的会有 \利用 not like '\%' 返回的是以字母开头的记录,利用 like '\%' 返回的是以汉字开头的。 阅读全文
posted @ 2009-09-27 11:34 zwei 阅读(5318) 评论(0) 推荐(0) 编辑

2009年9月23日 #

摘要: $(document).ready(function(){ $("a.delete").click(function(event){ action = this.getAttribute("action") form = $("<form></form>") form.attr('action',action) form.attr('method','post') inpu... 阅读全文
posted @ 2009-09-23 16:19 zwei 阅读(20943) 评论(0) 推荐(0) 编辑

2009年9月22日 #

摘要: repeater里添加序号的4种方法 两种简洁方法1、<itemtemplate><tr><td><%# Container.ItemIndex + 1%></td></tr></itemtemplate> 2、<itemtemplate><tr><td><%# this.... 阅读全文
posted @ 2009-09-22 11:10 zwei 阅读(310) 评论(0) 推荐(0) 编辑

2009年9月17日 #

摘要: <script type="text/javascript"> var bannerAD = new Array(); var bannerADlink = new Array(); var adNum = 0; bannerAD[0] = "/images/golf/flash_ftm.jpg"; bannerADlink[0] = "" bannerAD[1] = "/images... 阅读全文
posted @ 2009-09-17 16:01 zwei 阅读(208) 评论(0) 推荐(0) 编辑

2009年9月10日 #

摘要: <asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate> <div id="doing" style="z-index: 12000; left: 0px; cursor: wait; position: absolute; top: 0px;"> <table&... 阅读全文
posted @ 2009-09-10 15:03 zwei 阅读(182) 评论(0) 推荐(0) 编辑

2009年6月24日 #

摘要: mstsc /v:203.130.39.47 /console 阅读全文
posted @ 2009-06-24 15:55 zwei 阅读(139) 评论(0) 推荐(0) 编辑

2009年6月19日 #

摘要: EXEC sp_MSforeachtable 'exec sp_changeobjectowner ''?'',''dbo''' 一、进入SQL统一删除字段被挂的js 。操作方式如下:dbo.数据表 SET 字段= REPLACE(字段, '<script src=http://3b3.org/c.js></script>', '')declare @t varchar(5... 阅读全文
posted @ 2009-06-19 15:29 zwei 阅读(548) 评论(0) 推荐(0) 编辑

2009年6月10日 #

摘要: SQL对字符串的处理能力比较弱,比如我要循环遍历象1,2,3,4,5这样的字符串,如果用数组的话,遍历很简单,但是T-SQL不支持数组,所以处理下来比较麻烦。下边的函数,实现了象数组一样去处理字符串。一,用临时表作为数组create function f_split(@c varchar(2000),@split varchar(2)) returns @t table(col varchar(20)) as begin while(charindex(@split,@c)0) begin insert @t(col) values (substring(@c,1,charind 阅读全文
posted @ 2009-06-10 14:41 zwei 阅读(229) 评论(0) 推荐(0) 编辑

2009年4月24日 #

摘要: alter table SendMailListadd key_col int not null identity(1,1)godelete from SendMailListwhere exists(select * from SendMailList as t2where t2.EMail=SendMailList.EMailand t2.key_col>SendMailList.key_co... 阅读全文
posted @ 2009-04-24 17:40 zwei 阅读(132) 评论(0) 推荐(0) 编辑

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页