How to authenticate users using web.config ?

Answers were Sorted based on User's Feedback



How to authenticate users using web.config ?..

Answer / 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

How to authenticate users using web.config ?..

Answer / babu reddy

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

Is This Answer Correct ?    21 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

Why do we use Option Explicit?

2 Answers   Microsoft,


One Listbox showing all cities. If you select one city in list box the information related to that particular city should be displayed in Datagrid . How do you do that?

3 Answers   HCL,


Differentiate between early binding and late binding.

0 Answers  


What is FullTrust? Do GACed assemblies have FullTrust?

2 Answers  


Explain the life cycle of an ASP .NET page.

2 Answers  






How do you do client-side validation in .net? How to disable validator control by client side javascript?

0 Answers  


How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?

0 Answers  


How many web.config a application can have ?

6 Answers   Keane India Ltd, Manhattan, Vertex,


if you disable view state of a textbox will it maintain data during postbacks.if yes reason

9 Answers   FactorH, Jindal, Oxi Infotech,


I have a textbox , assign required field validator and i have two buttons 1) save 2) cancel , i want the validator run only when i click save button, don't validate cancel button , what to do?

7 Answers   eMids, Infotech, Integra, TCS, Wipro,


How do you use a custom validator? When might you want to use one?

3 Answers   Infosys,


What is difference b/w Data Grid in ASP.Net 1.1 and Gridview in 2.0

11 Answers   Bosch, IntraLogic,


Categories