How to restrict access to web pages for different types of users?
<p>I have a web application where there is one admin and many users. When a user logs in he is taken to a certain page from which he can perform other operations which lead him to other pages restricted to him .The same goes for the admin too. But if i change the url to the restricted page during runtime a user can access an admin's page and vice versa. I have heard about using membership access. But i dont know how its done. I am  using an sql database where the login details are stored in a table.</p>

<p>So how do i restrict access? I have heard it has to do something with the web.config? Is it possible to achieve the same result by using just code behind?</p>
