void but1_Click(object sender, EventArgs e) { String userid = this.seluserid.Value; String roleid = Request["RoleID"]; if (String.IsNullOrEmpty(userid) == false && String.IsNullOrEmpty(roleid) == false) { WebFrame.Comm.JRoleUsersBU bu1 = new WebFrame.Comm.JRoleUsersBU(); bu1.SetRoleUserID(roleid, userid, "0"); } String js1 = "layer.alert('操作成功!',function(index){;"; js1 = js1 + " var index = parent.layer.getFrameIndex(window.name);"; js1 = js1 + " parent.$('#butSearch').click();"; js1 = js1 + " parent.layer.close(index);});"; JAjax.ExecuteJS(js1); }