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
How do I publish my asp.net application to my isp's web server?
What is difference between view and partial view?
Less than one page, how many windows will you be able to maintain?
What are the various types of validation controls provided by asp.net?
What is the mvc framework?
In which event of page cycle is the viewstate available?
How long do session variables last?
What are the different types of cookies in asp.net?
Is it possible to create web application with both webforms and mvc?
Which is better union or union all?
What is cookies in asp net?
Name the namespace which is used by ado.net?
Describe the .net base class library.
What does the hotspot class in .net do?
Why would anyone need to implement their own hashtable or linked list?