I
info.lowyeah
Dear all,
I have an ASP.NET 2.0 website design problem.
I want to design a website, there are few normal pages(page1, page2,
page3) is to show my information. But there is another login
page(page4), which is used to allow advanced user to login and show
advanced page(page5,page6)
My problem is that when unauthorized user go to my main page, they no
need to go to login area to login.
But due to the web.config authorization setting, users cannot go to
all pages.
So, I add the following code
<location path="page1.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
But I found when I add one normal page, I need to add one set of the
above code in web.config. So I feel quite annoy.
Is there any good method to simply the above process?
For example, if I have 30 normal page (no need to authorized) and 3
advanced page (need to authorized), I need to add 30 <location></
location> tag to web.config.
Can anybody help me to solve this problem?
Regards and many thanks
I have an ASP.NET 2.0 website design problem.
I want to design a website, there are few normal pages(page1, page2,
page3) is to show my information. But there is another login
page(page4), which is used to allow advanced user to login and show
advanced page(page5,page6)
My problem is that when unauthorized user go to my main page, they no
need to go to login area to login.
But due to the web.config authorization setting, users cannot go to
all pages.
So, I add the following code
<location path="page1.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
But I found when I add one normal page, I need to add one set of the
above code in web.config. So I feel quite annoy.
Is there any good method to simply the above process?
For example, if I have 30 normal page (no need to authorized) and 3
advanced page (need to authorized), I need to add 30 <location></
location> tag to web.config.
Can anybody help me to solve this problem?
Regards and many thanks