asp.net User.IsInRole check in whole website
<p>im using asp.net with c#,</p>

<p>I want to check whether a user is on certain active directory group.</p>

<p>Im doing this check:</p>

<pre><code>   if (HttpContext.Current.User.IsInRole(ConfigurationSettings.AppSettings["Group"]))
        {

        }
</code></pre>

<p>The thing is: where do I place this code?
The site has several pages and I want the validation to be on all pages.</p>

<p>Do I put this on the master page?</p>

<p>Thanks.</p>
