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?
Did you know?Explore Trending and Topic pages for more stories like this.
No comments posted yet

Your Answer:

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

Adding to the next element in a multidimensional array
Hi, I'm trying to add a value to $node->field_spaces['nid'] where x is the next available spo

simple ping code
been searchin the site/web and found code thats simple but doesnt work.

I have a personal we

php/mysql problem
Hey all,

Problem: im trying to setup a shop where people can use a drop-down list to select t

Search with relational database
Hey,

I have quite a complicated (for me anyway ) relational database for an apartments syste

Problem with PHP code- simple contact form
Hi Folks,
I'm relativily new to PHP; I know HTML and CSS stuff but I have a problem- I have a co

Can you help please? Php file
I have to write this php file to allow users to register their nicknames on nickserv

For an I

writing a screen scraper
Hello,

I'm writing a screen scraper application and want to be able to get absolute addresses

getting weird error..
okay, I'm getting an error on this particular function, something about the syntax in the mysql LIMI

Help with syntax
Hi all!

The $bridge variable is not getting passed while it is contained in the line below:

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