Get Selected Row from ASP.NET MVC 3 WebGrid Abstract: The following article demonstrates how to get the selected row from the ASP.NET MVC 3 WebGrid and what to do to display data. Every website has to display data and every website has a Grid control…
asp.net mvc中js发请求一般写成: $.get("/Can/index"本地上是没有问题的但是部署到iis上,提示404,正确的请求的路径是:/网站名/Can/index,所以改为$.get("/网站名/Can/index";当然也可以改成../Can/index; 为了防止路径更多变化 可以定义一个全局的js变量动态拼到请求路径中去:放到iis上只需改变那个js变量即可:…