edsonwu

导航

#

[置顶] asd

摘要: 该学习JAVA还是学习.NET? 阅读全文

posted @ 2016-08-29 16:02 edsonwu 阅读(190) 评论(0) 推荐(1) 编辑

#

[置顶] C# 文本操作类 Trim() 和Replace()的用法小例子

摘要: 如果传过来的account 的值是,user1,user2,user3,user4,string filter = "Account IN ('" + account.ToString().Trim(',').Replace(",", "','") + "')";首先执行tostring()方法,然后执行Trim(','),执行后结果:user1,user2,user3,user4然后执行Replace(",", " 阅读全文

posted @ 2012-05-08 16:21 edsonwu 阅读(678) 评论(0) 推荐(1) 编辑

2013年10月8日 #

正则表达式

摘要: //匹配图片 var regexImg = new Regex(@"]*)(.*?)>", RegexOptions.IgnoreCase); var matches = regexImg.Matches(editor1.BodyHtml); var ftp = Common.NewsFtp(true); //遍历每个图片 foreach (Match match in matches) { string localPath = match.Value; //匹配地址 var regex = new Regex("src=\"(.*)\" 阅读全文

posted @ 2013-10-08 18:21 edsonwu 阅读(111) 评论(0) 推荐(0) 编辑

2013年6月6日 #

DataTable的一些特殊用法:Select

摘要: 当你从数据库里取出一些数据,然后要对数据进行整合,你很容易就会想到:1DataTabledt=newDataTable();//假设dt是由"SELECTC1,C2,C3FROMT1"查询出来的结果2for(inti=0;i<dt.Rows.Count;i++)3{4if(dt.Rows[i]["C1"].ToString()=="abc")//查询条件5{6//进行操作7}8}但这种做法用一两次还好说,用多了就累了。那有没有更好的方法呢?记得LinQ是可以直接对DataTable进行查询操作的,那在.Net Framework 阅读全文

posted @ 2013-06-06 11:00 edsonwu 阅读(249) 评论(0) 推荐(0) 编辑

2013年5月24日 #

gridview 合计行实现

摘要: 1:首先给gridview添加ShowFooter="true" 属性2:在RowDataBound 实现数据合计protected override void OnMainGridRowDataBound(object sender, GridViewRowEventArgs e) { base.OnMainGridRowDataBound(sender, e);if (e.Row.RowType == DataControlRowType.DataRow) {clickcount += Convert.ToInt32(DataBinder.Eval(e.Row.Data 阅读全文

posted @ 2013-05-24 11:37 edsonwu 阅读(399) 评论(0) 推荐(0) 编辑

2013年4月15日 #

返回

摘要: window.location.href = MemberWebSite + "member/Login.aspx?URL=" + document.URL; 阅读全文

posted @ 2013-04-15 10:33 edsonwu 阅读(122) 评论(0) 推荐(0) 编辑

2013年3月8日 #

C# 获取客户端电脑MAC 地址

摘要: 前台代码<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication2.WebForm1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt 阅读全文

posted @ 2013-03-08 10:20 edsonwu 阅读(878) 评论(0) 推荐(0) 编辑

2013年1月7日 #

jquery submit()不能提交表单的解决方法

摘要: <formid="form"method="get"><inputtype="text"name="q"value="XXX"/><buttontype="button"id="submit">查询</button></form><scripttype="text/javascript">$(function(){ $('#submit').clic 阅读全文

posted @ 2013-01-07 10:38 edsonwu 阅读(245) 评论(0) 推荐(0) 编辑

2012年12月12日 #

乱七八糟22

摘要: <tr> <td class="label"> 验证码: </td> <td> <input autocomplete="off" class="x-input showdisaskvcode" type="text" vtype="required" size="4" maxlength="4" class="showdisaskvcode" name="discussv 阅读全文

posted @ 2012-12-12 14:44 edsonwu 阅读(89) 评论(0) 推荐(0) 编辑

乱七八糟的

摘要: <script type="text/javascript"> EditBoxID = "editBox"; </script> <link href="<%= ZPath.ScriptsURI %>jQuery/jquery.tabs/Styles/jquery.ui.tabs.css" rel="stylesheet" type="text/css" /> <asp:ContentPlaceHolder ID="head&quo 阅读全文

posted @ 2012-12-12 14:13 edsonwu 阅读(176) 评论(0) 推荐(0) 编辑

2012年5月17日 #

CheckInput

摘要: var reg_EMail = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;var reg_QQ = /[1-9][0-9]{4,}/;var reg_Post = /[1-9]\d{5}(?!\d)/;var reg_IDCard = /\d{15}|\d{18}/;var reg_UID = /^[a-zA-Z][a-zA-Z0-9_]{4,15}$/;var reg_CN = /[\u4e00-\u9fa5]/;var reg_Tel = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;var reg_Mobile = / 阅读全文

posted @ 2012-05-17 11:15 edsonwu 阅读(732) 评论(0) 推荐(0) 编辑