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

Google voice
I currently have a form in html, but I want it in php so the information is not in the source code.<

Access website from only 1 computer...?
One of my customers wants his website to only be accessed by people in which they bought the website

pointer 102 question
I read a book
1
2
3
4
5
6
7
8
9
10
11
12
int main() {

Batch Session SM35 stuck in status 'in Background
Hi Experts,

I am facing a problem with Batch Input session SM35.

The batch se

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

how to validate date using javascript
I need to validate date in textbox using javascript..
The date is must be not greater than TODAY

question about header() security
is is safe to just use the header() function to redirect someone if they are, say, not logged in? or

Multi-image upload problems
Lets see if I can get some help on this one. Can anyone show me what I am doing wrong here. I'm just

Why use OOP?
Can someone explain to me why I should use OOP instead of procedure based code.

Im building a

code help - pagination
Hi all, I have this code, basically a user logs into my site and they get this page.

The pro

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