07 2017 档案

摘要:背景 请求部署在 IIS7.5 上的 REST 服务的 Put/POST/DELETE 操作发生 HTTP Error 405.0 - Method Not Allowed 错误。 Issue 解决 方法一:从HttpModule中移除 IIS拒绝PUT和DELETE请求是由于IIS为网站默认注册的 阅读全文
posted @ 2017-07-21 00:14 jinzesudawei 阅读(8684) 评论(0) 推荐(0)
摘要:分页控件(定义分页参数) ~/ViewComponents/PaginationViewComponent.cs ~/Views/Shared/Components/Pagination/Default.cshtml 列表页面(更新分页参数) ~/Controllers/ArticleControl 阅读全文
posted @ 2017-07-16 10:46 jinzesudawei 阅读(2159) 评论(0) 推荐(0)
摘要:场景 WinForm 应用,使用了 DevExpress.XtraEditors.TextEdit 控件的 KeyPress 和 Leave 事件。期望在 TextEdit 上按下回车键或者当 TextEdit 失去焦点时进行相关验证并弹窗提示。 问题 弹窗显示并关闭后,TextEdit 默认是 F 阅读全文
posted @ 2017-07-14 00:42 jinzesudawei 阅读(3646) 评论(0) 推荐(0)
摘要:环境 项目中使用了 System.Web.WebPages.Razor, Version=3.0.0.0,Nuget 还原缺失包后自动更新至 Version=3.2.5.0,编译成功,运行失败。 错误 “/”应用程序中的服务器错误。未能加载文件或程序集“System.Web.WebPages.Raz 阅读全文
posted @ 2017-07-05 00:23 jinzesudawei 阅读(898) 评论(0) 推荐(1)
摘要:背景 在 WinForm 解决方案中,更新 DataSet 应用程序集对象失败,Visual Studio 自动重启。 试一试 1. 更新 .xsd 时打开对应的 .Designer.cs。2. 如果更新 TableB 失败,但是更新 TableA 没问题,试着同时更新AB两张表,TableB 可能 阅读全文
posted @ 2017-07-04 23:50 jinzesudawei 阅读(250) 评论(0) 推荐(0)
摘要:背景 使用 Syncfusion / RichTextEditor 对录入后的信息进行展示:1. 希望内容高度自适应。2. 希望禁用原文中的超链接。 实现 录入页面 浏览页面 参考资料 https://help.syncfusion.com/aspnet-core/richtexteditor/wo 阅读全文
posted @ 2017-07-03 01:12 jinzesudawei 阅读(422) 评论(0) 推荐(0)