随笔分类 -  asp.net core mvc

摘要:数据是从后台富文本编辑后丢在数据库后取出的,不加Html.Raw(),前台就会把Html标签一同显示 阅读全文
posted @ 2018-09-18 09:41 猪翔heart 阅读(1864) 评论(2) 推荐(0)
摘要:原因>>用session是想验证 前端输入的验证码和后端存入seesion的是否一致,也可以使用的是TempData[]。 铺垫>> 前端用GetValidateCode()方法拿到 RandomCode()方法生成的5个字符 的图片格式。 服务器session中直接拿到RandomCode()生成 阅读全文
posted @ 2018-08-29 13:40 猪翔heart 阅读(2996) 评论(3) 推荐(1)
摘要:写博客原因:添加了区域(用作后台)后,报错: An unhandled exception occurred while processing the request.AmbiguousActionException: Multiple actions matched. The following 阅读全文
posted @ 2018-08-28 13:57 猪翔heart 阅读(3419) 评论(2) 推荐(2)