Category - Forms Authentication
16 Jul 2018 17 Jul 2018 0 Comments  10153 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement custom Authorization and Authentication using Forms Authentication in ASP.Net MVC Razor.

This article will illustrate how to implement a login form which validates user login from database using Forms Authentication in ASP.Net MVC Razor.
16 Jul 2018 17 Jul 2018 0 Comments  2004 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement and use the Authorize and AllowAnonymous Data Annotation attributes with Forms Authentication in ASP.Net MVC Razor.
16 Jul 2018 17 Jul 2018 0 Comments  34117 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement a simple login form using Forms Authentication which validates user login from database and also redirects user to Login page if the user is not Authenticated (logged in) and tries to access a page that requires authentication in ASP.Net MVC Razor.

The Login page URL will be set in the authentication section of the Web.Config file and the User will be redirected back to Login page if not logged in using the Authorize Data Annotation attribute in ASP.Net MVC Razor.