摘要:
直接上代码: 1 <html> 2 <head> 3 <meta name="viewport" content="width=device-width" /> 4 <script src="~/Scripts/jquery-1.8.2.js"></script> 5 <script> 6 func 阅读全文
摘要:
1.Enable-Migrations 开启版本库 2. Add-Migration addname 新增版本 3.Update-Database –TargetMigration: addname 更新版本至addname(用于版本的切换) 4.Update-Database -Script -S 阅读全文
摘要:
【编程环境】Visual Studio 2010, NET4.0【开发语言】C#, 理论上VB.NET等依赖.NET Framework框架的语言均受此影响【问题描述】使用HttpWebRequest抓取网页内容,但首次请求总是莫名奇妙的阻塞在Request.GetResponse();上,不过一旦... 阅读全文
摘要:
前言LINQ(Language Integrated Query,语言集成查询)是一组用于C#和VB.NET语言的扩展,它允许编写C#或者VB.NET代码,以与查询数据库相同的方式操作内存数据。 LINQ提Entity Framework技术系列之7:LINQ to Entities供了丰富的类似S... 阅读全文
摘要:
$.ajax({cache:true,type:"POST",url:ajaxCallUrl,data:$('#yourformid').serialize(),//你的formidasync:false,error:function(request){alert("Connectionerror"... 阅读全文
摘要:
事实上,MVC中已经很好的封装了Json,让我们很方便的进行操作,而不像JS中那么复杂了。MVC中: public JsonResult Test() { JsonResult json = new JsonResult ... 阅读全文
摘要:
#region 返回当前日期的文件夹 /// ///上传文件时自动生成文件夹 /// /// 要保存的路径 /// 返回生成的文件夹 public static string CreateDis(string path) { String st... 阅读全文
摘要:
functionregExp(reg,str){if(reg.test(str)){returntrue;}else{returnfalse;}} 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Draw... 阅读全文
摘要:
public void SetEmail() { //电子邮件对象 MailMessage mailMessage = new MailMessage(); ///发件人(网站管理员) mailMessage.From = new MailAddress... 阅读全文