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 ?

Answer Posted / deepa

Forms authentication can be done at web.config


<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 ?    29 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how cookies work.

982


In asp.net, how can you validate drop down box?

1097


What are the various ways to send content from one page to another?

879


In how many ways we can retrieve table records count?

984


Can you dynamically assign a Master Page?

936


How do active server pages work?

937


What is the difference between user control and custom control?

880


What is the use of web.config file?

945


Where do the cookie state and session state information be stored?

878


What are the new login controls in asp.net 2.0?

927


Give a few examples of page life cycle events.

1075


What is a web pool?

1045


Can we have 2 web config files?

907


Give an example of what might be best suited to place in the application_start and session_start subroutines?

917


How do I upload a file from my ASP.NET page?

1003