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

Displaying image from database
Hi,

I've got a site where that's got a database behind it. Currently it has loads of items in

php multiple action on submit
I have a form which says:

<form enctype='multipart/form-data' method='post' action='pr

php ajax - two drop down list with a submit button
i have created a form with 2 drop-down list and a submit button. I would like to know how to pass th

How to form a xml form table with a single sql statement..?
Hi everyone,
I don't know if this is going to be a duplicate thread but i couldn't

On page view, minus credit
Hello all, please, I need a little help with this script. I am charging one credit (credits can be p

defining website tags
Hi,

What would be the best way to define tags for my site, such as website title, url etc.

LOOPing Problem
Hello All!

The following code loops through the data and displays the data accordingly. My p

delete comma
HI,

How to delete "," at the end of the string.
Code: $match = 2009/02/03/a2corr

Can you help please? Php file
I have to write this php file to allow users to register their nicknames on nickserv

For an I

Recode Abap Dynpro into Web Dynpro
Hi All,
A client has asked us to look at rearchitecting a custom transaction that was developed

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