Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to authenticate users using web.config ?



How to authenticate users using web.config ?..

Answer / alb.shah

if we are using form based authentication at that time in
the web.config
we can set the autentication mode to "form"

then we can specify the user name and password which we are
going to access.
if any one can access that application then you can specify
<allow users="*">
inside the authentication tags

<authentication mode="Forms">
<forms name="appNameAuth" path="/"
loginUrl="login.aspx" protection="All" timeout="30">
<credentials passwordFormat="Clear">
<user name="jeff" password="test" />
<user name="mike" password="test" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What are the page level transaction and class level transaction?

1 Answers   Satyam,


Describe the method to create a permanent cookie?

0 Answers   Siebel,


What does occur first in ASP.Net, Authentication or Authorization?

0 Answers   MCN Solutions,


To display data in a Repeater control which templete is provided ?

4 Answers   Siebel,


diffrance between stored procedure & function in sql server?

2 Answers  


What type of code, client-side or server-side, is found in a code-behind file of a Web page?

0 Answers   MindCracker,


For a server control, you need to have same properties like color maxlength, size, and allowed character throughout the application. How do you handle this?

2 Answers   Microsoft,


Why mvc is faster than asp.net? : Asp.Net MVC

0 Answers  


How you will handle session when deploying application in more than a server?

0 Answers  


Why the javascript validation not run on the asp.net button but run successfully on the html button?

0 Answers  


what do machine key element in configuration file specify?

1 Answers   TCS,


what are the main advantage in .net?

4 Answers   TCS,


Categories