摘要:
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; namespace Oprations { public class cNIHE { 阅读全文
摘要:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test4.aspx.cs" Inherits="test4" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> 阅读全文
摘要:
1要全部复制粘贴过来 2.初始化时要设置自己网站的存储路径。。。不然会各种找不到 js,或者图片上传失败 3.ActionResult方法上要加上[ValidateInput(false)] 标签 4.显示编辑器内容要加上@Html.Raw 5.错误 10 类型“Uploader”同时存在于“C:\ 阅读全文
摘要:
视图页 控制器页 dto类 dal类 阅读全文
摘要:
public class MyPager { /// <summary> /// 每页数据条数 /// </summary> public int PageSize { get; set; } /// <summary> /// 总数据条数 /// </summary> public int TotalCount { get; set; } /// <summary> /// 当前页码(从 1 开 阅读全文
摘要:
参考网址https://www.cnblogs.com/rik28/p/6024425.html 阅读全文
摘要:
ContainerBuilder builder = new ContainerBuilder(); ////builder.RegisterType<GetTest>().As<IBufrTest>(); //builder.RegisterType<GetTest>().AsImplementedInterfaces(); //builder.RegisterType<gettest2>(). 阅读全文
摘要:
public class CURDEntity<T> where T : BaseEntity { private MyContext ctx; public CURDEntity(MyContext UserContext) { this.ctx = UserContext; } /// <summary> /// 获取所有数据 /// </summary> /// <returns></ret 阅读全文
摘要:
使用Nuget安装log4Net (或者用命令 Install-Package Log4Net -Version 2.0.8) 1.配置web.config 2.写入log4net的配置文件 3,.程序的开始处添加如下代码 4.新建LogHelper类 5程序处调用 普通调用 LogHelper.W 阅读全文
摘要:
GlobalFilters.Filters.Add(new ExceptionFilter()); public class ExceptionFilter:IExceptionFilter { public void OnException(ExceptionContext filterContext) { Excepti... 阅读全文