The WSAT provides an out of the box system for managing users and roles, but can only be launched locally and requires making changes to the connection string information in order to manage the users and roles on production.
Most websites that support user accounts also include a number of user and role administration web pages that enable administrators to manage users and roles from pages within the site. Such web-based administration pages make it much easier to manage users and roles and are essential for sites where there may be many administrators or administrators that do not have access to or the technical background to use Visual Studio to launch the WSAT.
NET includes a number of built-in Login-related Web controls that make implementing many of these administrative web pages as easy as drag and drop. For example, you can create a page for administrators to create a new user account by dragging the CreateUserWizard control onto the page and setting a few properties.
Furthermore, the Membership and Roles services' functionalities are available programmatically through the Membership and Roles classes in the. NET Framework. With these classes you can write code to create, edit, and delete users and roles, as well as to add or remove users to roles, to determine what users are in what roles, and to perform other user- and role-related tasks.
This page allows an administrator to add a new user account to the site and to specify whether or not the newly created user is in the Admin role see Figure 5. For a more detailed look at building user and role administration pages, along with step-by-step instructions on using the Membership and Roles classes and the Login-related ASP. There you'll find guidance on how to build web pages for creating new accounts, creating and managing roles, assigning users to roles, and other common administrative tasks.
Dan walks readers through the process of building a custom WSAT-like tool, includes his application's source code for download in C , and gives step-by-step instructions for adding his custom WSAT to a hosted website. Unfortunately, the WSAT is only accessible locally and cannot be visited from your production website.
However, by changing the connection string in the development environment to point to the production database you can use the WSAT to manage the users and roles on the production website. While the WSAT approach affords a quick and easy way to manage users and roles, it necessitates launching the WSAT from Visual Studio as well as temporary changes to the connection string information. The WSAT offers a quick way to manage users and roles on production, but is cumbersome and does not work well for websites with multiple administrators or with administrators who do not have or are not familiar with Visual Studio and the WSAT.
Is there a way to open the web site administration tools on production? Make sure the connectionstring is pointing to the remote sql server and then open website in vs and use the website admin tool. Then I guess your options are limited to using a third party tool or writing your own then, Sorry.
The content you requested has been removed. Ask a question. What good is the MSDN if it's not up to date? I hate Microsoft sometimes. Tom McClendon 1. I ran into the same problem and am writing a replacement for the MS web site admin tool. I've got the rules part mostly done. I'll be glad to share if you think it would help you. Is your code for the admin tool available for download? BarrySumpter 1. This discussion thread is closed Start new discussion.
Similar topics. NET Framework. How do I run the web site administration tool without the VS ide? Web site administration tool functionality for the end user.
How to Manager the ASP. Cannot delete user with Web Site Administration Tool. Software Development. Remote Development and Debugging Tools. Nested class structure question. How to use Nuget assembly as files with visual studio community. Ken Browning Ken Browning Ody Ody 1, 4 4 gold badges 23 23 silver badges 33 33 bronze badges.
Maxim Mikhisor Maxim Mikhisor 4 4 silver badges 4 4 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta.
0コメント