vs的url传参


在controller.cs的方法中写入
string UserID = Request.QueryString["UserID"];
ViewBag.UserID = UserID;


传参的形式:(easyui的弹层单独页面的写法)
parent.openWindow('编辑用户信息:', '/UserInfo/getListGetModel?UserID=' + curId, 1100, 800);


页面接收参数:
隐藏域:<input id="curId" type="hidden" value="@ViewBag.UserID" />
var curId = $("#curId").val();
console.log(curId)

 

easyui的关闭弹层单独页面的写法:

function close_btn() {
parent.closeWindow();
//关闭该弹层页面的方法,从父级关闭

}

posted @ 2020-04-08 09:04  石头记1  阅读(301)  评论(0编辑  收藏  举报