CreateUserWizard.CreatedUser イベント
アセンブリ: System.Web (system.web.dll 内)

Public Event CreatedUser As EventHandler
Dim instance As CreateUserWizard Dim handler As EventHandler AddHandler instance.CreatedUser, handler
public event EventHandler CreatedUser
public: event EventHandler^ CreatedUser { void add (EventHandler^ value); void remove (EventHandler^ value); }
/** @event */ public void add_CreatedUser (EventHandler value) /** @event */ public void remove_CreatedUser (EventHandler value)

MembershipProvider プロパティで指定したメンバシップ プロバイダが新しい Web サイト ユーザー アカウントを作成した後に、CreatedUser イベントが発生します。LoginCreatedUser プロパティが true の場合、ユーザーは CreatedUser イベントの後に Web サイトにログオンした状態になります。
CreatedUser イベントを使用して、ユーザーがサイトに初めてログオンする前に、パーソナル化値などの Web サイト値を設定します。

CreatedUser イベントを使用して、ユーザーの姓と名をパーソナル化プロパティに格納するコード例を次に示します。このコード例では、Web.config ファイルに次のエントリが必要です。
<profile>
</properties>
</profile>
</system.web>
</configuration>
<%@ page language="VB"%> <script runat="server"> Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, ByVal e As System.EventArgs) Profile.SetPropertyValue("UserName", firstName.Text & " " & lastName.Text) End Sub </script> <html> <head runat="server"> <title> CreateUserWizard.CreatedUser sample</title> </head> <body> <form id="form1" runat="server"> <div> <asp:createuserwizard id="CreateUserWizard1" runat="server" oncreateduser="CreateUserWizard1_CreatedUser"> <wizardsteps> <asp:wizardstep runat="server" steptype="Start" title="Identification"> Tell us your name:<br /> <table width="100%"> <tr> <td> First name:</td> <td> <asp:textbox id="firstName" runat="server" /></td> </tr> <tr> <td> Last name:</td> <td> <asp:textbox id="lastName" runat="server" /></td> </tr> </table> </asp:wizardstep> <asp:createuserwizardstep runat="server" title="Sign Up for Your New Account"> </asp:createuserwizardstep> </wizardsteps> </asp:createuserwizard> </div> </form> </body> </html>
<%@ page language="C#"%> <script runat="server"> void CreateUserWizard1_CreatedUser(object sender, EventArgs e) { Profile.SetPropertyValue("UserName",firstName.Text + " " + lastName.Text); } </script> <html> <head runat="server"> <title> CreateUserWizard.CreatedUser sample</title> </head> <body> <form id="form1" runat="server"> <div> <asp:createuserwizard id="CreateUserWizard1" runat="server"> <wizardsteps> <asp:wizardstep runat="server" steptype="Start" title="Identification"> Tell us your name:<br /> <table width="100%"> <tr> <td> First name:</td> <td> <asp:textbox id="firstName" runat="server" /></td> </tr> <tr> <td> Last name:</td> <td> <asp:textbox id="lastName" runat="server" /></td> </tr> </table> </asp:wizardstep> <asp:createuserwizardstep runat="server" title="Sign Up for Your New Account"> </asp:createuserwizardstep> </wizardsteps> </asp:createuserwizard> </div> </form> </body> </html>

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からCreateUserWizard.CreatedUser イベントを検索する場合は、下記のリンクをクリックしてください。

- CreateUserWizard.CreatedUser イベントのページへのリンク