How to control the permission-related User Interface in the asp.net?
<p>I am new in developing using asp.net.</p>

<p>I use java(struts2) to do the web application before,it is easy to control this use the jsp tag or struts2 tags:
For example(suppose the "do something" operation need use login):</p>

<pre><code>&lt;s:if test="#session.user!=null"&gt;
    &lt;span&gt;do something&lt;/span&gt;
&lt;/s:if&gt;
</code></pre>

<p>So if a user did not login,he will never see the menu of "do something".</p>

<p>Now I wonder how to make it in the asp.net?</p>

<p>Is this controled in the xx.aspx.cs?</p>

<p>Thanks. </p>
