Set Credentials for Website

Posted by Venkatesh under ASP.NET on 7/17/2012 | Points: 10 | Views : 6872 | Status : [Member] | Replies : 4
Hi,

I have an asp.net web site. Which is hosted in IIS. If any one access that site i need to set credentials.

like, if any one open that site in browser, before opening that site it should ask credentials(username,Password).

Once user entered that credentials then that site will be opened. How to do this?

Thanks,
Venkatesh.P




Responses

Posted by: Hariinakoti on: 7/17/2012 [Member] Starter | Points: 25

Up
0
Down
@Venkatesh,
u can use that page(login page) as a default page and give credentials

Thanks & Regards
Hari

Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sheonarayan on: 7/17/2012 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
There are articles related with forms authentication on this website (http://www.dotnetfunda.com/articles/article114.aspx ). Please read about it that will help you.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dotnetrajanikanth on: 7/17/2012 [Member] Starter | Points: 25

Up
0
Down
Venku,

As suggested by Hariinakoti, You can use a login page as a default page.

Login page is considered as one of the standard and classic method of providing access rights to any websites.

In order to increase the security, you can use Membership in asp.net.

Make use of Roles in your website so as to provide different access rights to different types of users like Admin,Moderator,User,Registered User etc...

Please Go Through the links pasted below for better understanding of membership concept.

http://www.codeproject.com/Articles/342061/Understanding-ASP-NET-Roles-and-Membership-A-Begin

http://www.4guysfromrolla.com/articles/120705-1.aspx (This link contain several parts if you can understand all the parts you will be one of the best in Membership)


____________
www.flickr.com/photos/psdesigner/

Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 7/17/2012 [Member] [MVP] Gold | Points: 25

Login to post response