How to authenticate users using Web.Config ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain global assembly cache.

579


What is AutoPostback?

607


What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?

573


What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?

559


Which method do you use to kill explicitly a users session?

631






What is css and what is it used for?

561


Explain the steps needed to be performed in order to create an animation in xaml?

564


What’s the difference between response .redirect and server.transfer?

525


Using code explain Configuration Management

1412


What is tracing? Where is it used?

558


What is the difference between Session and response.Redirect?

622


If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?

575


Explain asp.net mvc request life cycle? : asp.net mvc

496


Explain the difference between debug.write and trace.write? When should each be used?

564


What is full trust in asp.net?

553