asp.net binding user control attribute
<p>I have method that I am using to check the access of certain controls.  For some reason, when I put breakpoints in the HasAcess method, I only see hit it once, where I am usiing it several areas in the page.  Any Ideas. I feel really dumb asking this question. It seems to be very obvious.</p>

<p><strong>ASPX Page:</strong></p>

<pre><code> &lt;asp:CheckBox ID="chkIncludeVersions" runat="server" Text="Search Versions" Visible='&lt;%# TR.Utility.HasAccess("ugEpisodeVersionsView")%&gt;' /&gt;
</code></pre>

<p><strong>Code Behind:</strong></p>

<pre><code>        public static Boolean HasAccess( string access)
    { // Breakpoint
        string userGroup = HttpContext.Current.Session["UserGroup"] as string;
        List&lt;string&gt; groupsAccess =  new List&lt;string&gt;( ((string)Settings.Default.Properties[access].DefaultValue).Split(','));

        return groupsAccess.Contains(userGroup);
    }
</code></pre>
