摘要: 第一:创建自己的JS文件 (function ($) { $.extend($, { procAjaxData: function (data,funcSuc,funcErr) { if (!data.Statu) { return; } switch (data.Statu) { case "ok 阅读全文
posted @ 2020-02-15 16:57 杨品海 阅读(222) 评论(0) 推荐(0) 编辑
摘要: bundles.Add(new ScriptBundle("~/mvcAjax").Include("~/Scripts/jquery-1.7.1.min.js", "~/Scripts/jquery.unobtrusive-ajax.min.js", "~/Scripts/jquery.valid 阅读全文
posted @ 2020-02-15 16:14 杨品海 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 第一:在数据接口层创建IDBSession 存放的全是字段属性 再创建IDBSessionFactory创建获取的方法 public partial interface IDBSession { IHKSJ_ClientsDAL IHKSJ_ClientsDAL{get;set;} IHKSJ_Em 阅读全文
posted @ 2020-02-15 12:41 杨品海 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 第一种:利用配置文件的object 阅读全文
posted @ 2020-02-14 23:08 杨品海 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 首先创建程序集并把.xsd文件copy到程序中 第二:复制文件中的命名空间位置 第三:在指定的地方黏贴即可 实现写配置提示 阅读全文
posted @ 2020-02-14 22:26 杨品海 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1.创建过滤类 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace P01MVCFilter.Filters { // 阅读全文
posted @ 2020-02-12 22:59 杨品海 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1. 员工1作为区域的代码 添加一个UserOnePAreaRegistration的区域类 2.区域类的代码: using System.Web.Mvc; namespace 员工1.Areas.UserOneP //程序集 区域块 区域 { public class UserOnePAreaRe 阅读全文
posted @ 2020-02-12 17:09 杨品海 阅读(114) 评论(0) 推荐(0) 编辑
摘要: <%@ WebHandler Language="C#" Class="ValidateCode" %> using System; using System.Web; using System.Drawing; using System.Web.SessionState; public class 阅读全文
posted @ 2020-02-12 08:27 杨品海 阅读(195) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Web; using System.IO; namespace Helper { public 阅读全文
posted @ 2020-02-12 08:20 杨品海 阅读(102) 评论(0) 推荐(0) 编辑
摘要: // home/print/1 public ActionResult PRInt(int id) { return Content(" Id = "+id.ToString()); } // home/prname/james public ActionResult PRName(string n 阅读全文
posted @ 2020-02-12 08:19 杨品海 阅读(103) 评论(0) 推荐(0) 编辑