Customizing message/behavior


Posted on 16th Feb 2014 07:03 pm by admin

Hi,I'm using the ASP.NET membership/authorization controls in my application. Some parts of my application are reserved for users who are in certain roles i.e. editor, writer, etc. I control this with web.config files for those folders. My question is how do I give users meaningful and customized feedback if they try to access an area that they're not authorized for. For example if a writer tries to access an area that is only reserved for editors, I'd like to tell them something like "This area is for editors only". How can I create this behavior?

No comments posted yet

Your Answer:

Login to answer
58 Like 25 Dislike
Previous forums Next forums
Other forums

Multiple WHILE loops help
Hi there. I'm writing an application that is pulling and displaying results for real estate listing

PDO returns erroneous columns from within pdt
Hi All,

This is a truly weird behavior:
When using a simple pdo fetch, erroneous columns a

Sessions Value Not Saved
Hi,

Im making a login form and im using this code:
Code: if($login=="true"){

Xml parsing
I need a suggestion about parsing xml with multiply parts like pervious...
i.e. different device

highlighting search terms
well, I started this in the regular PHP section, but it no longer fits there. Suffice it to say, I'm

I need some help with the IF command...
I have a large number of images in one section of my website with the .jpg format. I'm adding a bun

Thread in PHP
Thread in PHP
Some basic use and basic code for thread in php
This is my question?

PHP XML extraction text
I would like to extract an xml text and have that text directly echo(print) out on my web page. Her

retrieving images from mysql database using php
So I've been trying to figure out how to store images in a mysql database, and as far as i can tell

Spaghetti Code
So.

I've pretty much reached the point where I have so many isset s on one page that I can't

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash