Buy Questpond's video subscriptions on
huge discount
.
Online: 3874
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
C#
>
Loading ...
i want to block one page in C# code
Posted by
Mesh_2010
under
C#
on 6/15/2012 |
Points: 10
| Views : 2132 | Status :
[Member]
| Replies : 1
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
Hi,
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...
Thanks
RameSH sinGH
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Santhiram
on: 6/15/2012
[Member]
Starter
|
Points: 25
0
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.
/Secured/Web.config
<system.web>
<authorization>
<deny users ="u1"/> ---Where u1 is the username give for the particular coutry
<allow users="*"/> -- Allow access to all users except anonymous and administrators.
</authorization>
</system.web>
Mesh_2010
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...