How to authenticate users using Web.Config ?



How to authenticate users using Web.Config ?..

Answer / chinnu

in web.config file we can specify the authentication mode

<authentication mode="windows/forms">

for form autentication we can wirte like this
<authentication mode="forms">
<form name="a.aspx" loginurl="login.aspx"
time out="30" protection ="all">

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?

0 Answers   HCL,


How can you provide an alternating color scheme in a Repeater control?

6 Answers   Siebel Systems,


Hi, We have a user control that have button Now we use this user control on different aspx pages. We want when we click on the user control button then button behave differently on different page (Dynamacilly).

2 Answers   HCL,


You have multiline textbox and submit button. if you paste xml content into multiline textbox and hit submit button. what action will perform?

6 Answers   D&B,


What is web application virtual directory ?

2 Answers   Satyam,






Descrie about response.buffer and repsonse.flush ?

2 Answers   ADP, Cognizant,


What is different in .net 1.1 and .net 2.0?

0 Answers  


what are the server controls used in sitepath navigation?

1 Answers  


what is webpart? what r the parts in this webpart (zone)

2 Answers  


What is the use of web.config and machine.config files?

0 Answers   Amdocs,


Explain file-based dependency and key-based dependency.

0 Answers   MindCracker,


while developing webservices if i want some users to use my webservice only how can i give security to my webservice?

0 Answers  


Categories