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

What is base class of .net?

531


What is a windows service?

553


What is form method?

491


What is Razor View Engine

603


Can the dictionary object be created in client?s scope ?

1984






What is the purpose of url encoding?

491


To load your generated dataset with data which method do you invoke?

597


What does session_start () do?

616


Explain how is the asp.net mvc architecture different from others? : asp.net mvc

498


What is semantic gap?

615


In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

649


Is it possible to apply themes to an asp.net application? If yes, then how?

566


How can you ensure a permanent cookie?

549


What is autopostback in dropdownlist in asp net?

523


What are the file extensions for razor views?

669