Processing math: 0%

随笔分类 -  .net MVC

摘要:1. 2. web.config <!-- 设置Session 超时时间--> <sessionState mode="InProc" timeout="180" /> 阅读全文
posted @ 2020-05-09 11:44 不能失败 阅读(783) 评论(0) 推荐(0) 编辑
摘要:declare @TableName sysname select @TableName = 'T_OOSOrder' declare @result varchar(max) = 'INSERT INTO '+@TableName+' (' declare @result1 varchar(max) = 'VALUES(' select @result = @result + na... 阅读全文
posted @ 2019-11-06 17:22 不能失败 阅读(295) 评论(0) 推荐(0) 编辑
摘要:授权过期后AJAX操作跳转到登录页的一种全局处理方式 菜鸟程序员之Asp.net MVC Session过期异常的处理 基于WebImage的图片上传工具类 阅读全文
posted @ 2018-01-15 00:01 不能失败 阅读(844) 评论(0) 推荐(0) 编辑
摘要:IIS上部署MVC网站,打开后ExtensionlessUrlHandler-Integrated-4.0解决方法 IIS上部署MVC网站,打开后500错误:处理程序“ExtensionlessUrlHandler-Integrated-4.0”在其模块列表中有一个错误模块“ManagedPipel 阅读全文
posted @ 2016-07-19 08:44 不能失败 阅读(629) 评论(0) 推荐(0) 编辑
摘要:当然,如果你想省掉所有这些麻烦也行,最简单的在IIS启动SSL的方法只要3步:1.下载IIS6.0ResourceKitTools:http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade... 阅读全文
posted @ 2015-11-01 22:42 不能失败 阅读(1773) 评论(0) 推荐(0) 编辑
摘要:CSRF(Cross-site request forgery跨站请求伪造,也被称成为“one click attack”或者session riding,通常缩写为CSRF或者XSRF,是一种对网站的恶意利用。尽管听起来像跨站脚本(XSS),但它与XSS非常不同,并且攻击方式几乎相左。XSS利用站... 阅读全文
posted @ 2015-05-31 11:37 不能失败 阅读(4831) 评论(0) 推荐(0) 编辑
摘要:使用FileResult导出txtl数据文件 阅读全文
posted @ 2014-12-21 11:32 不能失败 阅读(252) 评论(0) 推荐(0) 编辑
摘要:IE11下ASP.NET Forms身份认证无法保存Cookie的问题折腾了三四天,今天才找到资料,解决了。以下会转贴,还没来得及深究,先放着,有空再学习下。ASP.NET中使用Forms身份认证常见的做法如下:1. 网站根目录下的Web.config添加authentication节点 2. 在... 阅读全文
posted @ 2014-11-06 16:45 不能失败 阅读(407) 评论(0) 推荐(0) 编辑
摘要:function fn_Search() { var beginDt = ("#txtBegin").val(); var endDt = ("#txtEnd").val(); $.post('@Url.Action("MessageGet... 阅读全文
posted @ 2014-10-14 12:38 不能失败 阅读(1078) 评论(0) 推荐(0) 编辑
摘要:Dictionary myDic = new Dictionary(); myDic.Add(System.DBNull.Value.ToString(), "---"); myDic.Add("Male", "男"); ... 阅读全文
posted @ 2014-10-07 01:23 不能失败 阅读(389) 评论(0) 推荐(0) 编辑
摘要://后台 public ActionResult OrderAdd() { var items = new List() { (new SelectListItem(){Text = "男", Val... 阅读全文
posted @ 2014-09-28 18:58 不能失败 阅读(419) 评论(0) 推荐(0) 编辑
摘要:/// 查看页面,跳出一个新的添加窗口 function AddMessage() { $.ligerDialog.open({ url: UrlAddMessage, height: 500, width: 800,... 阅读全文
posted @ 2014-09-19 16:06 不能失败 阅读(1522) 评论(0) 推荐(0) 编辑
摘要:http://www.tritac.com/bp-24-dapper-net-by-examplehttp://www.codeproject.com/Articles/212274/A-Look-at-Dapper-NET 阅读全文
posted @ 2014-09-18 17:18 不能失败 阅读(250) 评论(0) 推荐(0) 编辑
摘要:@Html.TextBox("User", "", new { maxlength = 10 }); //限制 text 的最大输入字符数为 10个@Html.TextBox("users","",new {@class="l-text",style="width:186px;"}) //... 阅读全文
posted @ 2014-09-17 11:32 不能失败 阅读(2847) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示