zlb

随笔分类 -  AspNetMVC

Unable to load DLL 'api-ms-win-core-localization-l1-2-0.dll': 找不到指定的模块
摘要:asp.net mvc 4.6 发布到WinServer2008R2 SP1 提示 错误 Unable to load DLL 'api ms win core localization l1 2 0.dll': 找不到指定的模块 解决方法 从自己的电脑 C:\Windows\System32\do 阅读全文

posted @ 2018-01-30 11:24 zlb 阅读(1926) 评论(0) 推荐(0) 编辑

Asp.net mvc4 发布到IIS问题
摘要:mvc4的项目部署到IIS上发现问题1、所有的CSS,和JS引用都失效。后来用Chrome跟踪调试发现原来是引用路径找不到了。比如一个CSS文件引用../../Content/Style/demo.css,在本机调试路径是:http://localhost:13321/Content/Style/demo.css这样是没有问题的,但是部署到IIS上引用就成了http://172.20.168.56:8080/Content/Style/demo.css这样是访问不了的,后来调试发现正确的引用地址应该是http://172.20.168.56:8080/QSMC.EIT/Content/Styl 阅读全文

posted @ 2013-06-08 16:16 zlb 阅读(1162) 评论(1) 推荐(0) 编辑

asp.net mvc jquery json 传递复杂参数
摘要:js中区分大小写; model类 public class Student { public string name { get; set; } public int id { get; set; } public string gender { get; set; } public int age { get; set; } ... 阅读全文

posted @ 2012-11-28 17:46 zlb 阅读(583) 评论(0) 推荐(0) 编辑

asp.net mvc web api 参数输入多个参数
摘要:部分代码 apicontrol中 public class StudentController : ApiController { public HttpResponseMessage PostStudentsByReq(StudentReq studentReq, string criteria) { var students = studentRepository.GetAll().Where... 阅读全文

posted @ 2012-11-28 11:09 zlb 阅读(897) 评论(0) 推荐(0) 编辑

Ajax.BeginForm MVC3 使用
摘要:在一个项目中,只要点击一下按键,就会在当前页面显示数据; 在自己的项目中试用,结果,他跳转到了另外一个页面(就像不用异步刷新一样)。 网上找到解决办法 “make sure the ajax script is referenced? ...for ajax, I think this is the only script you will need(jquery.unobtrusive-a... 阅读全文

posted @ 2011-09-01 16:27 zlb 阅读(1384) 评论(0) 推荐(0) 编辑

导航

统计

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