摘要:
//销毁Cookies中的数据 if (Request.Cookies["Ticket"] != null) { HttpCookie mycookie; mycookie = Request.Cookies["Ticket"]; TimeSpan ts = new TimeSpan(0, 0, 0 阅读全文
摘要:
_menus = eval('(' + json.data + ')'); _menus = parseJSON('(' + json.data + ')'); 阅读全文
摘要:
是否启用 赋值: ... 阅读全文
摘要:
MVC代码: 性别 @Html.RadioButton(... 阅读全文
摘要:
1.FormCollection collection user.UserId =Convert.ToInt32(collection["UserId"]);/// /// 更新 /// /// /// /// ... 阅读全文
摘要:
jQuery ajax serialize()方法form提交数据,有个很奇怪的问题,好像不能取到隐藏控件的值。 //点击提交按钮保存数据 $('#btn_submitUser').click(function () { var UserId = $('#User... 阅读全文
摘要:
decimal d = decimal.Round(decimal.Parse( "0.55555 "),2);http://www.cnblogs.com/xiaofengfeng/archive/2010/11/20/1882372.html 阅读全文
摘要:
局部代码: 添加用户 修改用户 窗体代码: @*设定窗体宽度,只有在这个 class="modal-dialog" 这个div有效... 阅读全文
摘要:
我在做一张表的增删改查的时候,在编辑的时候,需要获取当前选择行对应的Id,然后并且把选择行的Id的对于的数据取出来,代码如下:列表a标签绑定:Js代码: url: '/Users/GetUserByUserId/'+UserId, 控制器代码:JsonRequestBehavior.AllowGet... 阅读全文
摘要:
前几天我发现 MVC 虽然解决了webform的问题但是用起来真的很麻烦,不知道是我刚接触的原因还是为什么,感觉有很多的局限性,对于form的提交一个form只能绑定一个action,代码如下: @using (Html.BeginForm("Create", "Users", FormMethod... 阅读全文
摘要:
说明:前者是MVC,后者是boostrap1.form 表单@using (Html.BeginForm("Create", "User", FormMethod.Post, new { @class = "form-horizontal" })) {}2. 文本框@H... 阅读全文
摘要:
bootstrap 名称 提交MVC @using (Html.BeginForm("Create", "User", FormMethod.Post, new { @class = "form-horizontal" })) 名称 @Ht... 阅读全文
摘要:
html: 权限管理cshtml:原有样式: @Html.ActionLink("权限管理", "UserList", "User", new { style = "color:red", @class = "J_menuItem" }) 再加额外样式: @Html.ActionLink("权限管... 阅读全文
摘要:
@Styles.Render("~/Bootstrap/css/bootstrap-theme.css") @Scripts.Render("~/jQuery/jquery-2.1.1.js") 阅读全文
摘要:
代码片段一: 代码片段二: 代码片段三: 下面这段代码:在原版上修改过,由于ajax分页不能及时更新总页数 下面是插件kkpager.js代码: /* kkpager V1.3 https://github.com/pgkk/kkpager Copyright (c) 2013 cqzhangkan 阅读全文
摘要:
1.直接丢弃小数部分,保留整数部分 a:parseInt(1.5555) b: 0|1.55552.向上取整a: Math.ceil(1.5555)b: (1.5555+0.5).toFixed(0)c: Math.round(1.5555+0.5)3.向下取整 a: Math.floor(1.55... 阅读全文
摘要:
MVC 整体布局搭建1.在 Views —》Shared—》新建布局页面(_Layout.cshtml)a.MVC 布局页面 @ViewBag.Title @RenderBody() 布局页面带标签1.在 Views —》新建带有布局页面(_ViewStar... 阅读全文
摘要:
{ xtype: "fieldcontainer", layout: "hbox", items: [{ fieldLabel: '开始时间', name: 'Create... 阅读全文
摘要:
showLoading.css样式:*{margin:0;padding:0;list-style-type:none;}a,img{border:0;}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:998;width:1... 阅读全文
摘要:
//----判断当前页面是否加载状态 开始 ---- document.onreadystatechange = subSomething;//当页面加载状态改变的时候执行这个方法. function subSomething() { if (... 阅读全文