摘要:
string matchEvents = "<span class=\"mw-headline\">大事记</span></.*?</ul>"; string Events = Regex.Match(content, matchEvents, RegexOptions.Singleline).Value; 阅读全文
2009年10月10日 #
2009年9月27日 #
摘要:
where asciistr(acolumn) not like '\%'asciistr()函数对非ASCII代码,会转换成二进制,且前面加\ ;所以asciistr(acolumn) 如果是汉字;转换出来的会有 \利用 not like '\%' 返回的是以字母开头的记录,利用 like '\%' 返回的是以汉字开头的。 阅读全文
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... 阅读全文
2009年9月22日 #
摘要:
repeater里添加序号的4种方法 两种简洁方法1、<itemtemplate><tr><td><%# Container.ItemIndex + 1%></td></tr></itemtemplate> 2、<itemtemplate><tr><td><%# this.... 阅读全文
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... 阅读全文
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&... 阅读全文
2009年6月24日 #
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... 阅读全文
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 阅读全文
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... 阅读全文