CreateUserWizard.CreatedUser イベントとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CreateUserWizard.CreatedUser イベントの意味・解説 

CreateUserWizard.CreatedUser イベント

メモ : このイベントは、.NET Framework version 2.0新しく追加されたものです。

メンバシップ プロバイダ新しWeb サイト ユーザーアカウント作成した後に発生します

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Dim instance As CreateUserWizard
Dim handler As EventHandler

AddHandler instance.CreatedUser, handler
/** @event */
public void add_CreatedUser (EventHandler value)

/** @event */
public void remove_CreatedUser (EventHandler
 value)
JScript では、イベント使用できますが、新規に宣言することはできません。
解説解説
使用例使用例

CreatedUser イベント使用してユーザーの姓と名をパーソナル化プロパティ格納するコード例次に示します。このコード例では、Web.config ファイル次のエントリが必要です。

<configuration>

<system.web>

<profile>

<properties>

<add name="lastName" />

<add name="firstName" />

</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>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CreateUserWizard クラス
CreateUserWizard メンバ
System.Web.UI.WebControls 名前空間
OnCreatedUser
その他の技術情報
ASP.NET ログイン コントロール


このページでは「.NET Framework クラス ライブラリ リファレンス」からCreateUserWizard.CreatedUser イベントを検索した結果を表示しています。
Weblioに収録されているすべての辞書からCreateUserWizard.CreatedUser イベントを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からCreateUserWizard.CreatedUser イベント を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「CreateUserWizard.CreatedUser イベント」の関連用語

CreateUserWizard.CreatedUser イベントのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



CreateUserWizard.CreatedUser イベントのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS