Step by step SharePoint 2007 of 21

Source: Internet
Author: User

Solve the problem of automatically having access to a Web site after implementing a registered user (3)--Creating a user

Summary

This article will record how to solve the third part of automatically having access to a Web site after implementing a registered user.

Before all the preparations have been done, now we have to solve the implementation of registered users, automatically have access to the Web site's last step to set the right!

Body

The implementation process for each step is documented below.

1, first we open the project created in the previous article, open register.aspx in design mode, select the CreateUserWizard control, then click Properties on the right, click on the Events icon on the toolbar of the Properties pane, Double-click Createduser to create a Createduser event for the control.

2, in the Createduser event, we add the following code:

Copy content to Clipboard code:

1 Roles.addusertorole (Createuserwizard1.username, "members");

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.