We have 2 sites in which one site allows the user with out
asking credentials and second one ask for credentials
through a log page. What might be the configurations
settings for both sites? We can use IIS and web.config
files together.

Answer Posted / guest

First one using windows authentication as follows.

Set Windows authentication in IIS.
And in web.config
<authorization>
<deny users=”?”/>
</authorization>

For the second one.
We set IIS authentication as none. And in web.config file
we mention as follow.

<authentication mode=”forms”>
<forms login=”login.aspx”/>
</authentication>
<authorization>
<deny user=”?”/>
<authorization>

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In ViewState How much lifespan items stored?

690


What is the difference between Classic ASP and ASP.Net?

628


Will the asp.net validators run in server side or client side?

745


What do you mean by serialize?

634


What is the appSettings Section in the web.config file?

666






What is the exact purpose of http handlers?

651


Define data caching?

620


Where web.config file is used?

649


Explain different types of Caching techniques in ASP.NET?

637


What is the maximum amount of memory any single process on windows can address?

621


What does aspcompat="true" mean?

652


What is the latest version of asp.net?

633


What is the concept of postback in asp.net?

681


What events will occur when a page is loaded?

694


Explain Session state management options in ASP.NET.

722