Hi,
I use custom membership provider and custom role provider to manage users of my application. In web.Config I use Form Authentication and define both providers as my default membership and role providers (I have implemented both providers in different class) now.. In Authorization section of web.config, i specifically state only allow roles = A, B . and i also specify for membership provider the name of the application of this web application (I use the smae custom data store and membership provide & role provider fro more than 1 web application)
this particular web app has its own name let say X. I specify X in web.config in membershipprovider section. Now let's say that a person is in the database, he logged in and becuase the password he supplied was correct, his name was written in the login control but he is still in login.aspx and can't move to other page. the reason being that his role denies him for using this web app but because he is a validate user (found in db with matching username and password) the login control does not throw any error message. I want to show this error message just like when people input wrong anme or password.. How can i do that ?
Thanks before