摘要:asp.net mvc 4.6 发布到WinServer2008R2 SP1 提示 错误 Unable to load DLL 'api ms win core localization l1 2 0.dll': 找不到指定的模块 解决方法 从自己的电脑 C:\Windows\System32\do
阅读全文
摘要: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
阅读全文
摘要: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; } ...
阅读全文
摘要:部分代码 apicontrol中 public class StudentController : ApiController { public HttpResponseMessage PostStudentsByReq(StudentReq studentReq, string criteria) { var students = studentRepository.GetAll().Where...
阅读全文
摘要:在一个项目中,只要点击一下按键,就会在当前页面显示数据; 在自己的项目中试用,结果,他跳转到了另外一个页面(就像不用异步刷新一样)。 网上找到解决办法 “make sure the ajax script is referenced? ...for ajax, I think this is the only script you will need(jquery.unobtrusive-a...
阅读全文