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