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

How to have a log of all the status a VIM document had been ?
Hi guys,

I’m using SAP Invoice Management plugin and the /OPT/VIM_ANALYTICS transa

Adding post count
How would I make it so everytime someone clicks submit on my form, their row in the database for the

Help with syntax
Hi all!

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

PEAR Email Attachment w/ $gpg
I have no issues with this code if I take out the attachement section and include the info in the em

mysql UNION | warning mysql_fetch_array !!
Code: <?php
$i = 0;
$query1="SELECT * FROM `products` WHERE `div

SWF image using php?
Hello once again.

My latest en devour requires me to produce an image of a static .swf that i

convert static html data into dynamic
hi all

i need to convert a website which has static above 2000 articles into dynamic and add

array ...
hi
Code: function formatCategories($categories, $parentId)
{
// $navCat stores all child

Do While statement
hi guys,

This may sound trivial but im new to php and as part of an assignmenti have to const

New to Arrays
Hi I am new to PHP (a week and a half now) and I am just beginning to read about arrays. I understan

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