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

Strange Oracle Query problem
Ok So I have this PHP class that talks to a Javascript class that basically creates a table of infor

Shuffle Array
Hi,

I am writing a script for a game that needs players to randomly be assigned a target (ano

Help Optimizing code
Good Morning,

I wrote a small import function for a website of mine and I know there has to b

Need to write a cookie with a url var
Not sure if its possible, but I need to write a cookie with a url.

So this would write 2232 a

Prevent PHP mail( ) from appending hostname to from address
Hey guys,

I want to be able to send texts to phones via email (since each phone has their own

session variables not working anymore
hello,
i use sessions to handle authentication within my site. my host has been changing a lot of

SHOW TABLES Help
Hi all

I have the following

Code: [Select]<?php
$sql = "SHOW TABLES&quo

Pipe email to PHP - get mail adress from MySQL - send?
Hi all,

this is the challenge:

1) Our faculty at the college where I'm employed includ

Ajax Error since Upgrading to 3.5
Ever since upgrading my site to .NET 3.5 (I needed LINQ), I've been getting this annoying error on o

Multi language - seo links
Im trying to figure out the best method to have a multi language website that will function with seo

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