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.
evgelen
Member
2 Points
6 Posts
How to add user with administrators rights?
Dec 05, 2009 01:32 PM|LINK
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
perryjr84
Member
250 Points
191 Posts
Re: How to add user with administrators rights?
Dec 05, 2009 02:00 PM|LINK
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
darkknight18...
Contributor
2674 Points
1040 Posts
Re: How to add user with administrators rights?
Dec 07, 2009 03:39 PM|LINK
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.
Please remember to mark the post as answer that solves your issue.
This will be greatly benificial for other users.
evgelen
Member
2 Points
6 Posts
Re: How to add user with administrators rights?
Dec 15, 2009 03:32 AM|LINK
Thank you it works great. :)