public class PermissionControl { private static readonly HttpSessionState Session = HttpContext.Current.Session; private static readonly HttpApplicationState Application = HttpContext.Current.Application; public static bool CheckPermission(string PermissionConstantName) { //my code } }
<asp:LinkButton ID="btn1" Visible='<%# CustomPermission.Class.PermissionControl.CheckPermission("Install") %>' runat="server">install module</asp:LinkButton>
"static"
static
<%= %>
<%# %>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)