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

Reg Ex
Im trying to search for the string: srv_9 (Dead ???)

I thought to use preg_match, however I d

SESSION question
I am building an application , a directory for auctions.
For SEO i made a script which copies a p

UL and LI Add Form
The idea I want here is when the user click on a character name from the drop down select bar at the

listing help
Hi,

at first, great new design!!! I like it,

i got a problem,

I want to list so

Date Question
I'm using the TIMESTAMP() function within mysql to set the date/time for certain events. However, ho

Searching keywords from array
Hello everyone, Im just wondering if someone could help me with another issue im having. Im still le

how do i display data on a page from mysql
1 - do i use this code at the top of each of my page i wish to only alow access if there as been a s

url- go to webpage
i have an input text field and submit button.

how do i make the url entered into the textfiel

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

Array disappearing in foreach loop
Okay, I have this problem where an array will become undefined in a foreach loop.

Here is the

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