10 2014 档案

摘要:前言LINQ(Language Integrated Query,语言集成查询)是一组用于C#和VB.NET语言的扩展,它允许编写C#或者VB.NET代码,以与查询数据库相同的方式操作内存数据。 LINQ提Entity Framework技术系列之7:LINQ to Entities供了丰富的类似S... 阅读全文
posted @ 2014-10-21 14:50 the boy、图样图森破 阅读(172) 评论(0) 推荐(0)
摘要:$.ajax({cache:true,type:"POST",url:ajaxCallUrl,data:$('#yourformid').serialize(),//你的formidasync:false,error:function(request){alert("Connectionerror"... 阅读全文
posted @ 2014-10-16 10:09 the boy、图样图森破 阅读(132) 评论(0) 推荐(0)
摘要:事实上,MVC中已经很好的封装了Json,让我们很方便的进行操作,而不像JS中那么复杂了。MVC中: public JsonResult Test() { JsonResult json = new JsonResult ... 阅读全文
posted @ 2014-10-14 17:15 the boy、图样图森破 阅读(177) 评论(0) 推荐(0)
摘要:#region 返回当前日期的文件夹 /// ///上传文件时自动生成文件夹 /// /// 要保存的路径 /// 返回生成的文件夹 public static string CreateDis(string path) { String st... 阅读全文
posted @ 2014-10-08 19:09 the boy、图样图森破 阅读(399) 评论(0) 推荐(0)
摘要:functionregExp(reg,str){if(reg.test(str)){returntrue;}else{returnfalse;}} 阅读全文
posted @ 2014-10-08 19:06 the boy、图样图森破 阅读(117) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Draw... 阅读全文
posted @ 2014-10-08 19:05 the boy、图样图森破 阅读(152) 评论(0) 推荐(0)
摘要:public void SetEmail() { //电子邮件对象 MailMessage mailMessage = new MailMessage(); ///发件人(网站管理员) mailMessage.From = new MailAddress... 阅读全文
posted @ 2014-10-08 19:04 the boy、图样图森破 阅读(198) 评论(0) 推荐(0)
摘要:获取地址栏参数(其中name为你所需要的参数值) function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r =... 阅读全文
posted @ 2014-10-08 19:03 the boy、图样图森破 阅读(150) 评论(0) 推荐(0)
摘要:#region 将datatable数据转化成list public static List ToList(this DataTable dt) where T : class,new() /// /// 将datatable数据转化成list /// /// 泛型T ... 阅读全文
posted @ 2014-10-08 19:02 the boy、图样图森破 阅读(268) 评论(0) 推荐(0)
摘要:说明:准备出一个系列,所谓精髓讲C#语言要点。这个系列没有先后顺序,不过尽量做到精。可能会不断增删整理,本系列最原始出处是csdn博客,谢谢关注。C#精髓第四讲 GridView 72般绝技作者:清清月儿主页:http://blog.csdn.net/21aspnet/时间:2007.3.24-26... 阅读全文
posted @ 2014-10-07 19:21 the boy、图样图森破 阅读(186) 评论(0) 推荐(0)
摘要:AspNetPager分页控件解决了分页中的很多问题,直接采用该控件进行分页处理,会将繁琐的分页工作变得简单化,下面是我如何使用AspNetPager控件进行分页处理的详细代码:1.首先到www.webdiyer.com下载最新的AspNetPager.dll,直接在vs2005中添加引用即可。2.... 阅读全文
posted @ 2014-10-05 23:01 the boy、图样图森破 阅读(157) 评论(0) 推荐(0)