locked
How to add user with administrators rights? RRS feed

  • Question

  • User2138819739 posted

    Hi could you give me please step by step guides how to add a new user with administrator's rights or change the user who already exists.

    Thank you in advance

    Saturday, December 5, 2009 9:32 AM

Answers

  • User730446648 posted

    Hello Evgelen

    I found a piece of code set in a zip file. All you have to do is register yourself through your normal website registration.

    Put the users.aspx file in your root folder so anyone can access it, type the location your browser, and change your login Id from guest to Admin.

    AND THE MOST IMPORTANT PART IS AFTER YOU HAVE CHANGED YOURSELF, MOVE THAT FILE TO A PROTECTED AREA OF YOUR SITE.

    I wish I could take credit for writing the code but it was done by TomT, great piece of code.

    Go here http://forums.asp.net/t/1110595.aspx the link for the users.aspx file is at the bottom of the first post.

    And there you go.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 7, 2009 11:39 AM

All replies

  • User139366633 posted

    If you are just starting out then it will benefit you to visit the vidoes section in the learn area of this site. The following link leads to a basic video on asp.net's membership utility. It does all of the coding for you, and after a little head scratching works very well.

    http://www.asp.net/learn/videos/video-45.aspx 

    This video will more thoroughly explain how to set up the sql database that the embership utility uses:

    http://www.asp.net/learn/videos/video-148.aspx

     

    Good luck

    Saturday, December 5, 2009 10:00 AM
  • User730446648 posted

    Hello Evgelen

    I found a piece of code set in a zip file. All you have to do is register yourself through your normal website registration.

    Put the users.aspx file in your root folder so anyone can access it, type the location your browser, and change your login Id from guest to Admin.

    AND THE MOST IMPORTANT PART IS AFTER YOU HAVE CHANGED YOURSELF, MOVE THAT FILE TO A PROTECTED AREA OF YOUR SITE.

    I wish I could take credit for writing the code but it was done by TomT, great piece of code.

    Go here http://forums.asp.net/t/1110595.aspx the link for the users.aspx file is at the bottom of the first post.

    And there you go.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 7, 2009 11:39 AM
  • User2138819739 posted

    Thank you it works great. :)

    Monday, December 14, 2009 11:32 PM