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
What is the asp.net control toolkit?
When you use Ajax controls in the ASP.NET application?
What is base class of .net?
What is x xss protection?
What is skin in asp.net?
What does occur first in ASP.Net, Authentication or Authorization?
What is the extension of master page in asp.net?
How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?
Describe the difference between inline and code behind - which is best in?
Please brief not about xsd,xslt & xml?
Explain how is a property designated as read-only?
What do you understand by aggregate dependency?
What is Cookies Less Session?
Mention the namespace that is used to include .net data provider for sql server in .net code?
How to prepare culture-specific formatting in .net.