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

Can I call a class inside a function?
I have a class written in another file that handles my image resizing.

Can I do this (php say

Hardcopy printing is to wide
I want to make a hardcopy at runtime of my active form like this

Creating XML with php
I need to creat an XML with php and have successfully produced a valid output.
The problem I hav

Search with relational database
Hey,

I have quite a complicated (for me anyway ) relational database for an apartments syste

Timer control causing error
I recently decided to add a timer control to an existing page that uses AJAX on my site. As soon as

Blocking video streaming
Hello everyone,

I post a message here because i didn't find any solution yet.
I just finis

Consuming MII WebService in Java WebDynpro
Hello,

We are facing a strange situation...

We define a transaction in MII to

Connection Timeout
I'm using xmii 12.0

I'm calling a transaction as a web service from a windows application

Linking with Foreign Keys
I have been getting an erro when I try and link:

create table Faculty_Specialty (I_Name v

socket communication between c++/java and sending image
hi,

i have a class in c++ called win32_sockserver which creates socket to java. i am trying

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