|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div id="userRolesView">
<%=Html.Hidden("__userName", ViewData["UserName"].ToString()) %>
<div>
<%:Html.Global("RES_SYS_ROLES")%>
</div>
<%=Html.ListBox("rolesList", (SelectList)((object[])ViewData.Model)[0], new {style = "width:270px;height:100px;margin-top:5px;margin-bottom:5px;" })%>
<div style="height: 40px; padding-top: 10px;">
<%=Ajax.Button(Html.Global("RES_ADD"),"ui-icon-plus","addRoleToUser();") %>
<%=Ajax.Button(Html.Global("RES_REMOVE"), "ui-icon-minus", "removeUserFromRole();")%>
</div>
<div>
<%:Html.Global("RES_USER_ROLES")%>
</div>
<%=Html.ListBox("userRolesList", (SelectList)((object[])ViewData.Model)[1], new {style = "width:270px;height:100px;margin-top:5px;margin-bottom:5px;" })%>
</div>
<script type="text/javascript">
$("#userRolesView").userRoleController({
userList: "#userRolesList",
roleList: "#rolesList",
username: $("__userName").val()
});
</script>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
In 1999, I started programming using Delphi, VB, VJ.From 2002 I started with .NET using C#.Since 2005 when i had became an EIP product manager I was focus on EIP and CMS technique. In 2008 i established dotnetage.com and started to shared my ideas and projects online. I believe "No shared no grow"
www.dotnetage.com