![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mvc
文章平均质量分 76
专注开发
我编程,我骄傲
展开
-
MVC复选框选中方法
1、Model类 public class News { public int ID { get; set; } public string Name { get; set; } }2、Controller返回数据 private List GetALL() { List li原创 2016-07-19 09:36:05 · 5337 阅读 · 0 评论 -
多查询条件的MVC分页
1、查询 @using (Ajax.BeginForm("方法", "控制器", new RouteValueDictionary { { "id", "" } }, new AjaxOptions() { HttpMethod = "Get",原创 2016-07-19 09:41:30 · 1690 阅读 · 0 评论 -
获取客户端Mac地址
/// /// 返回IP地址的MAC地址 /// /// /// /// /// /// [DllImport("Iphlpapi.dll")] private static extern int SendARP(Int32 dest, In原创 2016-09-05 14:44:09 · 399 阅读 · 0 评论 -
MVC路由Route
控制器方法: public ActionResult Index(string controller, string action, int id) { ViewBag.Name1 = controller; ViewBag.Name2 = action; ViewBag.Name3 = id原创 2017-09-13 10:39:08 · 375 阅读 · 0 评论