随笔分类 - asp.net MVC
摘要:/// /// 登录 /// /// /// public JsonResult Login() { List userList = new List { ...
阅读全文
摘要:有时候会遇到这种情况:在一个表单上需要多个按钮来完成不同的功能,比如一个简单的审批功能。如果是用webform那不需要讨论,但asp.net mvc中一个表单只能提交到一个Action处理,相对比较麻烦点。方法一:使用客户端脚本比如我们在View中这样写:代码/> />" />在点击提交按钮时,先...
阅读全文
摘要:页面代码@{ Layout = null;} PurchaseOrderDetail 控制器代码 ZG_ERPEntities erp = new ZG_ERPEntities();public JsonResu...
阅读全文
摘要:var rows = $('#List').datagrid('getSelections'); $("#modalwindow").html(""); $("#moda...
阅读全文
摘要:html代码:@{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Index_Layout.cshtml";} GridView @{ Layout = null;}...
阅读全文
摘要:如图:1: 控制器代码// // GET: /AjaxUser/ shopEntities shop = new shopEntities(); public ActionResult Index() { return V...
阅读全文
摘要:using System.Collections.Generic;using System.Collections.Specialized;using System.Linq;using System.Web;using System.Text;using System.Web.Mvc;using ...
阅读全文
摘要:@using (Ajax.BeginForm("GetTime","order",new AjaxOptions() { Confirm="你确认这么做吗?", HttpMethod="post", ...
阅读全文