Authentication ?
-
Hi, I'm developing a testing web and want to run it on my local intranet. I've used asp.net 1.1 and sql server database 2000, now problem is that i have a directory named as "Admin" in which i've all the admin pages. I want that no other user can access this directory pages except Admin. Can anybody tell how and should i do in asp.net and sql server?
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
-
Hi, I'm developing a testing web and want to run it on my local intranet. I've used asp.net 1.1 and sql server database 2000, now problem is that i have a directory named as "Admin" in which i've all the admin pages. I want that no other user can access this directory pages except Admin. Can anybody tell how and should i do in asp.net and sql server?
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
set the location tag in the web.config for the corresponding folder... something like this....
location path="Admin" system.web authorization allow roles="Administrators" deny users="*" authorization system.web location
Regards
J O H N :rose:
"Even eagles need a push." David McNally
-
set the location tag in the web.config for the corresponding folder... something like this....
location path="Admin" system.web authorization allow roles="Administrators" deny users="*" authorization system.web location
Regards
J O H N :rose:
"Even eagles need a push." David McNally
Hi J O N, Thanks for your help i did the same think but when i login through admin user name it give ReturnUrl=Admin Directory path in addressbar, other users account working properly. now can you tell me what code should be there and database table structure. Please help me
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
-
Hi J O N, Thanks for your help i did the same think but when i login through admin user name it give ReturnUrl=Admin Directory path in addressbar, other users account working properly. now can you tell me what code should be there and database table structure. Please help me
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
| Muhammad Waqas Butt | wrote:
now can you tell me what code should be there and database table structure
to secure the pages within a folder in an intranet application that is the way you should have the web.config file settings. so that It will allow only the user's those who are under that particular role. what is the need for Code and database table structure? Could you please be more specific?
Regards
J O H N :rose:
"Even eagles need a push." David McNally
-
| Muhammad Waqas Butt | wrote:
now can you tell me what code should be there and database table structure
to secure the pages within a folder in an intranet application that is the way you should have the web.config file settings. so that It will allow only the user's those who are under that particular role. what is the need for Code and database table structure? Could you please be more specific?
Regards
J O H N :rose:
"Even eagles need a push." David McNally
what is the need for Code and database table structure? Could you please be more specific?
Thanks for your help. I wanted to know where and how i should define roles in db or code or both?|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
-
what is the need for Code and database table structure? Could you please be more specific?
Thanks for your help. I wanted to know where and how i should define roles in db or code or both?|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com