Results 1 to 3 of 3

Thread: How to create a custom role provider

  1. #1
    Junior Member
    Join Date
    Dec 2007
    Answers
    2

    How to create a custom role provider

    I want to create a custom role provider which returns the role data based on username and other additional parameters. Currently although I am able to override RoleProvider class I am unable to pass additonal parameters to the default GetRolesForUsers method.


  2. #2
    Junior Member
    Join Date
    May 2008
    Answers
    8

    Re: How to create a custom role provider

    The web.config file will need several new pieces. In order to glue the Login control to your custom membership provider, you will need a section called . You can set the properties of the custom provider in this section. You can also control these properties from the custom membership provider class. The web.config used for this ,assumes some aspx files should be accessible only after login is validated, and some files should always be available.































  3. #3
    Expert Member
    Join Date
    Dec 2007
    Answers
    138

    Re: How to create a custom role provider

    In asp.net its very easy, Please follow the steps and you can create your own roles:
    Open you web site In standard bar there is tab for 'Website' -> got o Asp.net Configuration thats open a new web page then follow the guidelines as there mention you can create roles.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact