随笔分类 -  asp.net MVC

摘要:/// /// 登录 /// /// /// public JsonResult Login() { List userList = new List { ... 阅读全文
posted @ 2014-11-16 17:31 小锋神 阅读(1528) 评论(0) 推荐(0) 编辑
摘要:有时候会遇到这种情况:在一个表单上需要多个按钮来完成不同的功能,比如一个简单的审批功能。如果是用webform那不需要讨论,但asp.net mvc中一个表单只能提交到一个Action处理,相对比较麻烦点。方法一:使用客户端脚本比如我们在View中这样写:代码/> />" />在点击提交按钮时,先... 阅读全文
posted @ 2014-11-16 16:45 小锋神 阅读(2699) 评论(1) 推荐(0) 编辑
摘要:页面代码@{ Layout = null;} PurchaseOrderDetail 控制器代码 ZG_ERPEntities erp = new ZG_ERPEntities();public JsonResu... 阅读全文
posted @ 2014-06-11 23:22 小锋神 阅读(7641) 评论(1) 推荐(4) 编辑
摘要:var rows = $('#List').datagrid('getSelections'); $("#modalwindow").html(""); $("#moda... 阅读全文
posted @ 2014-05-06 23:38 小锋神 阅读(1723) 评论(0) 推荐(0) 编辑
摘要:html代码:@{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Index_Layout.cshtml";} GridView @{ Layout = null;}... 阅读全文
posted @ 2014-05-05 23:54 小锋神 阅读(11052) 评论(0) 推荐(1) 编辑
摘要:如图:1: 控制器代码// // GET: /AjaxUser/ shopEntities shop = new shopEntities(); public ActionResult Index() { return V... 阅读全文
posted @ 2014-05-03 21:41 小锋神 阅读(2385) 评论(1) 推荐(1) 编辑
摘要:using System.Collections.Generic;using System.Collections.Specialized;using System.Linq;using System.Web;using System.Text;using System.Web.Mvc;using ... 阅读全文
posted @ 2014-05-03 15:25 小锋神 阅读(3031) 评论(3) 推荐(0) 编辑
摘要:@using (Ajax.BeginForm("GetTime","order",new AjaxOptions() { Confirm="你确认这么做吗?", HttpMethod="post", ... 阅读全文
posted @ 2014-05-03 15:22 小锋神 阅读(587) 评论(0) 推荐(1) 编辑

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