i want to block one page in C# code

Posted by Mesh_2010 under C# on 6/15/2012 | Points: 10 | Views : 1289 | Status : [Member] | Replies : 1

i'm working dotnet project, my problem is one page i want to block one particular country
what i can do it plz give me C# source code...

RameSH sinGH


Posted by: Santhiram on: 6/15/2012 [Member] Starter | Points: 25

Block a Page means you want to deny access to that Particualr Page.So you can do that by making the folder in which the page exists as secured.A folder can be made secured by using Authorization tag in Web.Config file.

<deny users ="u1"/> ---Where u1 is the username give for the particular coutry
<allow users="*"/> -- Allow access to all users except anonymous and administrators.

Mesh_2010, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response