摘要:则表达式是处理字符串的常用工具。在C#中,我们一般使用Regex类来表示一个正则表达式。一般正则表达式引擎支持以下3种匹配模式:单行模式(Singleline)、多行模式(Multiline)与忽略大小写(IgnoreCase)。1. 单行模式(Singleline)MSDN定义:更改点 (.) 的含义,使它与每一个字符匹配(而不是与除 \n 之外的每个字符匹配)。使用单行模式的典型场景是获取网页...
阅读全文
摘要:http://www.tzwhx.com/newOperate/html/1/11/114/19468.html
阅读全文
摘要:http://blog.lixiphp.com/online-seo-html-css-js/http://www.cssdrive.com/index.php/main/csscompressor/ css压缩http://javascriptcompressor.com/ js压缩http://www.radys.cn/article.asp?id=77 js插件http://coffeescripter.com/code/ad-gallery/ 相册插件http://topic.csdn.net/u/20100705/09/d270754c-6f5d-4864-84b2-5d4013ca
阅读全文
摘要:js代码(function($) { $.fn.extend({ ajaxPager: function(options) { var defaults = { startPage: 1, PagesCount: 10, ChangeSiteEvent: null, ShowFirstLast: false, ShowGoBack: true }; var options = $.extend(d...
阅读全文
摘要:function showimg(ele) { ele.src = "http://cm.aqioo.com/Styles/Expert/images/default120.gif";}<img cg width="100" height="100" alt='<%= model.model.Topic %>' src='<%=imgpath+"/"+model.model...
阅读全文
摘要:public void OnActionExecuting(ActionExecutingContext filterContext) { string userName = filterContext.ActionParameters["userName"].ToString(); if (!string.IsNullOrEmpty(userName)) { RouteData rd = fil...
阅读全文
摘要:1.首先存一个拼音表create table Sys_PinYin(id int identity(1,1) primary key,Py nvarchar(50),Word nvarchar(50))insert into Sys_PinYin(Py,Word)select * from(select 'a' as py,N'厑' as wordunion all select 'ai',N'靉...
阅读全文
摘要:$(function() {$.ajax({url: "http://****.***.com/***.html?callback=?",dataType: "jsonp",jsonp: 'callback'});}); public ContentResult ***() { int state = 0; if (HttpContext.User.Identity.IsAuthenticate...
阅读全文
摘要:row_number()over(partitionby...orderby...)rank()over(partitionby...orderby...)dense_rank()over(partitionby...orderby...)count()over(partitionby...orderby...)max()over(partitionby...orderby...)min()ove...
阅读全文
摘要:set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgoalter PROCEDURE [dbo].[sp_OrderPagination](@fields varchar(1000) = '*', -- 需要返回的列 @sortField varchar(255)='', -- 排序的字段名, max(字段)或min(字段)字段不重复@pageSize int = ...
阅读全文
摘要:ROW_NUMBER、RANK、DENSE_RANK 和 NTILE,这些新函数使您可以有效地分析数据以及向查询的结果行提供排序值。您可能发现这些新函数有用的典型方案包括:将连续整数分配给结果行,以便进行表示、分页、计分和绘制直方图。 Speaker Statistics 方案下面的 Speaker Statistics 方案将用来讨论和演示不同的函数和它们的子句。大型计算会议包括三个议题:数据库...
阅读全文
摘要:sql server检查临时表是否存在使用中发现 select into 临时表 很麻烦,下面是使用中发现的一些注意事项(一下以mssqlserver为例):1,一般使用create table person (id int ,name varchar(20),birthday datetime) 读取数据到临时表中 select * into #tb_tmp from person where ...
阅读全文
摘要:1.fckeditor 脚本出现unterminated string literal问题的时候,一般就是遇到付给value值有换行情况。 一般对此处理要使用替换方式:return content.Replace("'", "'").Replace("'", """).Replace("\r","\\");或者直接在控件里赋值注意:单引号,双引号,换行符号。换行不是转换\n,而是转换\r2.回转 url ReturnUrl=<
阅读全文
摘要:ISNUMERIC(字段)isnull(字段)cast(字段 as 类型)convert(类型,字段)rownumber() over(order a desc)
阅读全文
摘要:注意:remote你需要的参数名,如这里的email不能写到data哪里。这是js插件的bug<script type="text/javascript"> $(function() { $.validator.addMethod("checkName", function(value, element) { value = $.trim(value); $(element).val(...
阅读全文
摘要:1、加入 <param name="wmode" value="transparent" />2、加入 <embed src="YourFlash.swf" wmode="transparent" ... ></embed>参考http://www.artery.cn/news/WEBbiaozhunhua/2009-06-14/197.html源代码
阅读全文
摘要:<style>#idParentDIV{width:100%;height:80px;padding:6px;background-color:buttonshadow;}#idDIV{width:80%;height:40px;background-color:#FF6633;color:#FFFFFF;padding:6px;}#idCodeDiv{width:80%;paddin...
阅读全文
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><body xmlns="http://www.w3.org/1999/xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><img width='77' height='5' src='chrome://livemargin...
阅读全文
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><body xmlns="http://www.w3.org/1999/xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><img width='77' height='5' src='chrome://livemargin...
阅读全文
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><body xmlns="http://www.w3.org/1999/xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><img width='77' height='5' src='chrome://livemargin...
阅读全文