473,513 Members | 2,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

runtime determination of authorization

Hi all,

I'm making a menu page in ASP.NET in which I present the user with a list of
pages that are available to him.
In the web.config I will add a list of url's of all the pages.
Those pages have different authorization settings and I would like the menu
to
only show the user the pages that he can really open.
Authorization is role based (windows athentication in combination with
'allow'
and 'deny' in the web.config).
How do I find out at runtime if the user is authorized to view a certain
page/url?

TIA,

Corno
Nov 19 '05 #1
0 828

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1607
by: Christopher Pragash | last post by:
I have two subclass deriving from a common base class. The base class exposes two shared functions for serialization and deserialization in XML format and some other methods that are overrided by the derived classes. I want to be able to serialize and deserialize the derived classes through the methods in the base class, without explicitly...
6
1253
by: Pete | last post by:
Hi, Is it possible for an application to determine, at runtime, whether an arbitrary class supports a known interface? I can think of a couple of cludgy ways of doing this (the calling app will know the details of the interface, so worst-case could just blindly try invoking a method) but I'm scanning through the reflection documentation...
6
539
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by surfin it in multiple browsers simultaneously the site generates a generic runtime error after awhile. I'm thinking this has something to do with my...
4
1972
by: Johnnie Norsworthy | last post by:
ASP.NET 2.0 How do I configure my web site to require forms authorization only for a subfolder off the root? I know how to set Web.config for forms authentication for the whole site, but I need the root folder to allow all read access, and a single subfolder to require authorization. Thanks for any assistance. -Johnnie
2
2064
by: derekbarrett | last post by:
Hi, I found this article in DB2 magazine and learned about the Problem Determination Mastery Exam. I am very interested in taking the exam, however, following the links in the article leads to DB2 tutorials and exams, but no mention of the Problem Determination Mastery Exam. Now, the DB2 9 Viper exams just came out, so I was wondering if...
9
1938
by: manish | last post by:
we have avariablr int bps; // bps determined during run time - - - how can we make conditional declaration of a variable y we want appropriate declaration depending upon bps.
0
1455
by: Justin Dutoit | last post by:
Hey! I'm sorry if this is a bit of a newbie question, but I am gettting unwanted 'Runtime error' messages, i.e. not the error proper, and customErrors mode="Off" doesnt' seem to work. My web.config file probably needs something- it is below. Please help soon... <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <!-- ...
0
1037
by: andremc | last post by:
Hello everyone, I've looked around, but haven't been able to get an exact answer to this question. I have three user roles which have access to their own folders, and an owner role which can access all. authentication and authorization is set up correctly, since it performs as needed. Is there a way that a person in the "Owner" role can...
3
1074
by: sethia.prashant | last post by:
Dear programmers/Developers, I'm developing a website of e-Learning, I have finished approx 50% of my project, now I'm getting problem. My website will be accessed by three type of users. 1. Student 2. Faculty 3. Administrator
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7394
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7559
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7123
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.