Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 342
  • Last Modified:

Change ASP.NET Config

I wanted to please ask how can I change the settings listed in ASP.NET Configuration once a website is deployed.  I ordinarily add users using the ASP.NET configuration tool in Visual Studio.  

However, once the web application is deployed how do I change the settings without going into Visual Studio?  I am using ASP.NET 2.  If someone could please let me know the steps to take, that would be appreciated.

Thanks.
0
jjrr007
Asked:
jjrr007
  • 4
  • 4
1 Solution
 
lotusnotesnewbieCommented:
Are you using the inbuilt ASP.NET DB or your own database?
0
 
tomasgruenerCommented:
if the users are stored in the configuration file, try to edit web.config
0
 
jjrr007Author Commented:
Thanks for your patience and time.  I am using the ASP.NET database.  Which table or stored procedure should I use to add users?  I would like to minimize the chances of a bug occurring later.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
lotusnotesnewbieCommented:
you can easily code it in one or two forms. Use the inbult CreateUserWizard Control to create new users, or use the Membership functions.

Membership class in using System.Web.Security;
Just add membership class and intellisence it will list a lot of options almost everything you can doing using the configurator.
Like Creating /Updating /Deleting users.
eg:
Membership.CreateUser
Membership.DeleteUser
Membership.UpdateUser
0
 
jjrr007Author Commented:
lotusnotesnewbie,

I prefer to not use Visual Studio to add new users, because the application is deployed.

The user info is stored in the tables/stored procedures created in the database by asp.net.  Should I use a stored procedure to create a user or maybe just update a table?  If so which one?  I want to ensure that no bugs come up later due to creating user(s).  Thanks.
0
 
lotusnotesnewbieCommented:
:) All the commands mentioned above use internally the stored procedures and tables that you had just requested. If you still want to go by stored procedures, I can send the list
0
 
jjrr007Author Commented:
lotusnotesnewbie,

Thanks for your time.  In your post, 22938120, are those commands in Visual Studio that I could use to create the user.  In other words, you are recommending that I can create a page or new application to create the user(s)?

0
 
lotusnotesnewbieCommented:
Yes the commands are in Visual Studio. Yeah you can create a page to create/update/delete the users. This is the easiest way

Or else here is the list of stored procedures that you can use:

aspnet_Membership_ChangePasswordQuestionAndAnswer
aspnet_Membership_CreateUser
aspnet_Membership_FindUsersByEmail
aspnet_Membership_FindUsersByName
aspnet_Membership_GetAllUsers
aspnet_Membership_GetNumberOfUsersOnline
aspnet_Membership_GetPassword
aspnet_Membership_GetPasswordWithFormat
aspnet_Membership_GetUserByEmail
aspnet_Membership_GetUserByName
aspnet_Membership_GetUserByUserId
aspnet_Membership_ResetPassword
aspnet_Membership_SetPassword
aspnet_Membership_UnlockUser
aspnet_Membership_UpdateUser
aspnet_Membership_UpdateUserInfo
aspnet_Roles_CreateRole
aspnet_Roles_DeleteRole
aspnet_Roles_GetAllRoles
aspnet_Roles_RoleExists
aspnet_Setup_RemoveAllRoleMembers
aspnet_Users_CreateUser
aspnet_Users_DeleteUser
aspnet_UsersInRoles_AddUsersToRoles
aspnet_UsersInRoles_FindUsersInRole
aspnet_UsersInRoles_GetRolesForUser
aspnet_UsersInRoles_GetUsersInRoles
aspnet_UsersInRoles_IsUserInRole
aspnet_UsersInRoles_RemoveUsersFromRoles

You can check for the parameters by right clicking on each stored procedure.
0
 
jjrr007Author Commented:
Thanks. To create/delete a user do I only need the two stored procedures listed here:

aspnet_Users_CreateUser
aspnet_Users_DeleteUser

Are there any other sprocs to create/delete a user?  I just want to minimize the chances of a bug coming up in the program.  
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now