To create the admin user account in club starter kit.
First run the website, create some users using the Membership link on the website.
(Creating 1 or 2 users is compulsory before u start using web admin tool is Club kit....In other kits the order does not matter but here it matters for reasons i dont know...)
Now 2 cases..
Option 1 (
you are running the project locally on your machine)File - Edit - View - Website
click website
ASP.NET Configuration
Upgrade the roles of members to Administrators whom you want as admins
Option 2 (
on remote server)
2 approaches here...
Slow Approach..(safest).(File>open website>ftp site). Enter proper details.
It will take few minutes to open..(10-12 mins on 56 kbps modem)
Now follow the option 1.
Fastest approach. (Do only when u undertstand the below code)
Open Query analyser . It is client tool shipped with SQL server. Many hosting companies include in their CTRL panel also.
- Copy the following T-SQL statement into the Query Analyser window:
SELECT RoleId FROM aspnet_Roles WHERE RoleName = 'Administrators'
Click Submit and save the return value for use in step 3. Click Reset.
- Copy the following T-SQL statement into the Query Analyser window:
SELECT UserId FROM aspnet_Users WHERE UserName = '<username>'
Replace
<username> with the user name of the account to which
administrator privileges will be granted. Retain the single quotation
marks around this case-sensitive value. Click Submit and save the return value for use in step 3. Click Reset.
- Copy the following T-SQL statement into the Query Analyser window:
INSERT INTO aspnet_UsersInRoles (RoleId, UserId) VALUES ('<roleID>', '<userID>')
Replace
<roleID> with the return value from step 1. Replace
<userID> with the return value from step 2. Retain the single
quotation marks around these values. Click Submit.
Club Site Starter Kit ASP.NET 2.0
http://www.rohitjain.com