![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ASP.NET MVC
文章平均质量分 64
_iorilan
10年以上软件工程经验,先后从事在线教育/IT金融/即时通信/政府/物流平台/零售/门禁/监控等领域。专注夯实基础/项目成本与架构平衡/框架调研/团队高效协同工作
展开
-
A potentially dangerous Request.Form value was detected from the client
问题描述: ASP.NET has detected data in the request that is potentially dangerous because it might include HTML markup or script. The data might represent an attempt to compromise the security of your appl...原创 2018-09-29 18:51:05 · 1159 阅读 · 0 评论 -
MVC4 使用 bootstrap daterangepicker
MVC4 使用 bootstrap daterangepicker原创 2015-02-05 23:44:42 · 2333 阅读 · 0 评论 -
MVC 中使用TreeView
MVC 中使用TreeView原创 2015-02-04 14:23:50 · 3699 阅读 · 0 评论 -
在Asp.net MVC 使用bootstrap 的modal dialog 实现Popup
在Asp.net MVC 使用bootstrap 的modal dialog 实现Popup原创 2015-01-31 01:17:07 · 6452 阅读 · 2 评论 -
使用knockout.js 完成template binding
使用knockout.js 完成template binding原创 2014-11-20 09:53:31 · 2162 阅读 · 0 评论 -
Asp.net Mvc使用PagedList分页
Asp.net Mvc使用PagedList分页原创 2014-10-12 15:57:19 · 2438 阅读 · 1 评论 -
mvc 中Range中max和min值晚绑定
mvc 中Range中max和min值晚绑定原创 2014-11-13 09:49:40 · 3352 阅读 · 0 评论 -
mvc中使用remote属性来做ajax验证
mvc中使用remote属性来做ajax验证原创 2014-11-13 09:50:54 · 3311 阅读 · 0 评论 -
Handle bar 使用实例
<!----------------------------------------------------- *************************List Template****************** **************************************************-->原创 2014-03-13 21:56:24 · 1569 阅读 · 0 评论 -
Using NInject Do DI(3) In Asp.net MVC4
使用NInject做DI(3)原创 2014-04-02 16:22:20 · 1373 阅读 · 0 评论 -
ASP.NET MVC 中 如何将同一个form post到不同的action
ASP.NET MVC 中 如何将同一个form post到不同的action原创 2015-02-09 22:36:58 · 3539 阅读 · 0 评论 -
ASP.NET MVC 导出CSV 的 CsvFileResult 类
ASP.NET MVC 导出CSV 的 CsvFileResult 类原创 2015-02-09 22:40:42 · 3590 阅读 · 0 评论 -
在ASP.NET MVC中使用PagedList之2--将查询关键字传入后端
在ASP.NET MVC中使用PagedList之2--将查询关键字传入后端原创 2015-02-14 22:52:57 · 2273 阅读 · 0 评论 -
asp.net core 部署在ubuntu
检查 ubuntu版本:lsb_release -a安装 .Net Core SDK注册 Microsoft key and feed:wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.debsudo dpkg -i packages-microsoft-pro...原创 2018-07-17 22:36:05 · 662 阅读 · 0 评论 -
C# 生成二维码
C# 生成二维码原创 2017-11-18 21:05:27 · 895 阅读 · 0 评论 -
Asp.net MVC scheduler实现
Asp.net MVC scheduler实现原创 2017-10-18 18:37:33 · 1005 阅读 · 0 评论 -
Asp.Net MVC webAPI Token based authentication
Asp.Net MVC webAPI Token based authentication原创 2017-07-28 00:06:04 · 1348 阅读 · 0 评论 -
ASP.NET MVC中 使用邮件模板的两种方式
ASP.NET MVC中 使用邮件模板的两种方式原创 2016-09-16 11:02:53 · 2611 阅读 · 0 评论 -
HTML上传文件的form enctype属性
当form中包含了 时,需要设置:enctype="multipart/form-data">这个操作实际是设置了MIME stream类型,请求会以二进制传输。可参见:http://www.w3schools.com/tags/att_form_enctype.asphttp://stackoverflow.com/questions/4526273/what-does-enctype-mult原创 2016-01-04 12:05:02 · 3117 阅读 · 0 评论 -
asp.net MVC5 sitemap 的使用
1. 安装Nuget package2. 打开 mvc.sitemap 添加以下代码:<mvcSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0"原创 2015-08-19 17:53:44 · 2392 阅读 · 1 评论 -
C# Asp.net MVC 分页时传参场景 动态生成QueryString
C# Asp.net MVC 分页时传参场景 动态生成QueryString原创 2015-04-27 23:20:15 · 3144 阅读 · 4 评论 -
asp.net MVC 使用signalR +bootstrap 实现 progressBar
asp.net MVC 使用signalR +bootstrap 实现 progressBar原创 2015-02-15 20:19:12 · 2450 阅读 · 0 评论 -
Asp.Net MVC4 系列--进阶篇之View
Asp.Net MVC4 系列--进阶篇之View原创 2014-04-12 20:05:34 · 2124 阅读 · 0 评论 -
Asp.Net MVC4 系列--进阶篇之Controller(2)
调用Action的流程IIS 接收到一个http请求,进入w3wp进程(如果是webgarden,先找到一个压力小的的w3wp),找到applicationpool,进入global.asax,进入路由,从controllerfactory找到一个controller,如果我们用了默认的controller,会解析出action名称和参数调用action(也可以手动直接在controller处原创 2014-04-08 23:51:26 · 2167 阅读 · 0 评论 -
Asp.Net MVC 系列--进阶篇之Filter
Asp.Net MVC 系列之Filter详解原创 2014-04-08 16:32:05 · 2927 阅读 · 0 评论 -
Asp.Net MVC4 系列--进阶篇之Helper(2)
Asp.Net MVC4 系列--进阶篇之Helper(2)原创 2014-04-13 23:33:42 · 1718 阅读 · 0 评论 -
Exception Handling in Asp.net MVC
From :http://www.codeproject.com/Articles/731913/Exception-Handling-in-MVCIntroductionIn this article we will discuss about Exception handling in MVC in detail. If you are completely转载 2014-03-12 10:32:37 · 1993 阅读 · 0 评论 -
ASP.NET MVC 中 Ajax.ActionLink 的使用
1.先在VIEW中引用: 2.在VIEW中添加测试代码: Test Div 3.在Controller中添加测试action: public string AjaxTest() { return "Some random text" + new Random().Next(1000);原创 2012-09-08 10:35:42 · 2373 阅读 · 0 评论 -
asp.net mvc2 数据验证方法
1.在MODEL定义一下attribute,通常包括:[Required(ErrorMessage="stu no is not null")] [StringLength(10,ErrorMessage="length is invalid")] public global::System.String stuNo {原创 2012-09-08 14:51:03 · 1127 阅读 · 0 评论 -
asp.net mvc 路由机制小记
默认路由: routes.MapRoute( "Default", // 路由名称 "{controller}/{action}/{id}", // 带有参数的 URL new { controller = "Home", action = "Index", id = UrlParam原创 2012-09-10 21:56:54 · 1473 阅读 · 0 评论 -
mvc 中使用jquery ajax与action传值
步骤:0.html: 1.使用json数据形式$(document).ready(function () { $("#btn").click(function () { $.ajax({ typ原创 2012-09-11 12:27:34 · 3016 阅读 · 0 评论 -
asp.net MVC Controller 小记
1.调用。有这样一个action: public void method1(string id1, string id2, string id3) { Response.Write("id1: " + id1 + " id2 : " + id2 + " id3 :" + id3); }2.调用:此时已成功调用,但URL为:ht原创 2012-09-11 18:09:18 · 1353 阅读 · 0 评论 -
asp.net mvc view使用小结(TEXTBOX为例)
1.使用ViewData传递字符串:controller: ViewData["name"] = s.name; return View("Details");view: 生成HTML: 2.使用ViewData传递对象:controller: ViewDat原创 2012-09-13 09:20:57 · 1320 阅读 · 0 评论 -
asp.net mvc view 使用小结2
1.actionLink:一般使用: 跨controller调用:controller: [AsyncTimeout(6000)] public void method1Async(string id1, string id2, string id3, string id4 = "4") { Thread原创 2012-09-13 19:03:07 · 1303 阅读 · 0 评论 -
Asp.Net MVC4系列--进阶篇之Helper(1)
Asp.Net MVC4系列--进阶篇之Helper(1)原创 2014-04-13 20:11:55 · 2577 阅读 · 0 评论 -
Asp.Net MVC4 系列--基础篇(1)
Asp.Net MVC4 系列--基础篇(1)原创 2014-03-05 11:00:52 · 1737 阅读 · 0 评论 -
Asp.Net MVC 系列--基础篇(2)
Asp.Net MVC 系列--基础篇(2)原创 2014-03-05 11:24:39 · 1595 阅读 · 0 评论 -
Asp.Net MVC4 系列--进阶篇之Model(2)
Asp.Net MVC4 系列--进阶篇之Model(2)原创 2014-04-22 22:57:27 · 2317 阅读 · 0 评论 -
Asp.Net MVC系列--进阶篇之controller(1)
通过实现接口IController完成一个controller对于默认的路由:routes.MapRoute( name: "Default", url:"{controller}/{action}/{id}", defaults: new { controller ="Home", actio原创 2014-04-07 23:24:18 · 2063 阅读 · 0 评论 -
Asp.Net MVC4 系列--进阶篇之路由 (2)
上一篇介绍了Asp.Net MVC 中,从Http Pipeline上接收到请求如何匹配,匹配限制,以及如何控制在指定命名空间查找,解析出controller和action,并传参。这篇主要介绍如何使用路由完成url生成,实现页面跳转,以及customize一个路由。在view中生成一个url连接 路由配置使用默认生成的:routes.MapRoute(原创 2014-04-06 18:21:57 · 2817 阅读 · 0 评论