Tip on building a role-based security module for rich user interfaces (Using Extensive Javascript/JQuery)?
<p>These days, building rich user interfaces for your application is very essential and im a fan of slick and easy to use interfaces.</p>

<p>Today, we have sliding panels, hiding html elements, timelines ... All these use javascript/JQuery. Sometimes when used in a role-based security application. One sometimes need to enable or disable access to a very small unit of the application, like a panel within a list of panels with not disrupting the client script from executing.</p>

<p>What tips can one following while building a role-based security module that would be robust to take care of todays rich user interface? </p>

<p>This question applies to the <strong>.NET</strong> platform.</p>

<p><strong>Update:</strong></p>

<p>I know it is not wise to rely on security from the client side. What i really want to know is how you can use the server side and the client sides' ability to manipulate DOM elements to build a real role-based security module for a flexible and rich user interface.</p>
