Enable authentication in web.config.
Create a login page and in the login method, check the user. Use the FormsAuthentication class to set the authentication cookie.
Here is the entry for forms authentication
If you create an asp.net mvc site project in visual studio, you will see an authentication implementation.
source
share