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

PRotect my POST DATA... FROM HTML ATTACKS
I need to like let's say

If a user submit's his Prayer and he put's <meta refresh stuf

How to clone an SAP ECC using bacup tape on z/os?
We want to clone our production to a different SID using backup tape.

Wordpress IE issue
So I am trying to add the background shadow to my wordpress page. It works fine in Firefox but does

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

problem getting my contact form working
Yeah I know this is a pretty basic problem, but it's been a while since I've worked with PHP and I'm

question about n
I was looking at some of the things you could do with php and one of the things I have tried is n.<

AJAX form submit
I recently built a form that submits data to my database with an ajax function that is called throug

Execure stored procedure on a timer
Can someone tell me an easier way to execute a stored procedure on a timer? I am using Oracle 10g R

Running External Scripts
I am very new to PHP and am not even sure what I'm asking is possible. I have just installed mediaW

IS Retail & Manufacturing
Hi

Can IS Retail and Manufacturing activities be done in same instance ie. in same client

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