摘要: 委托 和 事件在 .Net Framework中的应用非常广泛,然而,较好地理解委托和事件对很多接触C#时间不长的人来说并不容易。它们就像是一道槛儿,过了这个槛的人,觉得真是太容易了,而没有过去的人每次见到委托和事件就觉得心里别(biè)得慌,混身不自在。本文中,我将通过两个范例由浅入深地讲述什么是... 阅读全文
posted @ 2014-04-21 17:36 流浪的狸猫 阅读(155) 评论(0) 推荐(0) 编辑
摘要: function IsURL(str_url){ var strRegex = "^((https|http|ftp|rtsp|mms)?://)" + "?(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?" //ftp的us... 阅读全文
posted @ 2014-04-21 17:34 流浪的狸猫 阅读(1629) 评论(0) 推荐(0) 编辑
摘要: //后台.CS文件验证Email格式是否正确:public bool IsEmail(string str_Email){return System.Text.RegularExpressions.Regex.IsMatch(str_Email, @"^([\w-\.]+)@((\[[0-9]{1,... 阅读全文
posted @ 2014-04-21 17:33 流浪的狸猫 阅读(221) 评论(0) 推荐(0) 编辑
摘要: DOM提供的选择器选择器是帮助我们选择页面元素的工具,在网站制作中常常会涉及到某个元素的改变,通过选择器提取这些元素可以很轻易的实现(DOM术语把所说的“元素”称作是“节点”)。JavaScript的选择器主要是由DOM(文档对象模型,Document Object Model)提供的两种主要的方法... 阅读全文
posted @ 2014-04-21 17:24 流浪的狸猫 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 第一步:创建整个解决方案 service.interface:用于定义服务的契约(所有的类的接口)引用了wcf的核心程序集system.ServiceModel.dllservice:用于定义服务类型的类库项目(所有的类)实现了service.interface的所有接口hosting:控制台应用... 阅读全文
posted @ 2014-04-21 17:19 流浪的狸猫 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 读写文件的帮助类using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;usi... 阅读全文
posted @ 2014-04-21 16:57 流浪的狸猫 阅读(480) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syste... 阅读全文
posted @ 2014-04-21 16:51 流浪的狸猫 阅读(201) 评论(0) 推荐(0) 编辑
摘要: //点击上一页 $('.pointLeft').click(function() { if (prevAllow) { prevAllow = false; scrollUlLeft = scrollUlLeft - scrollUl... 阅读全文
posted @ 2013-12-18 12:00 流浪的狸猫 阅读(462) 评论(0) 推荐(0) 编辑
摘要: BLL层的逻辑代码using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace BLL{ public class Class1 { public bo... 阅读全文
posted @ 2013-09-18 09:44 流浪的狸猫 阅读(782) 评论(0) 推荐(0) 编辑
摘要: function divShow() { if ($("#tbxSearchKeywords").val() == "") { document.getElementById("divshow").style.display = "none... 阅读全文
posted @ 2013-09-13 21:20 流浪的狸猫 阅读(284) 评论(0) 推荐(0) 编辑