Wizard.OnSideBarButtonClick メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Wizard.OnSideBarButtonClick メソッドの意味・解説 

Wizard.OnSideBarButtonClick メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

SideBarButtonClick イベント発生させます

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

Protected Overridable Sub
 OnSideBarButtonClick ( _
    e As WizardNavigationEventArgs _
)
Dim e As WizardNavigationEventArgs

Me.OnSideBarButtonClick(e)
protected virtual void OnSideBarButtonClick
 (
    WizardNavigationEventArgs e
)
protected:
virtual void OnSideBarButtonClick (
    WizardNavigationEventArgs^ e
)
protected void OnSideBarButtonClick (
    WizardNavigationEventArgs e
)
protected function OnSideBarButtonClick (
    e : WizardNavigationEventArgs
)

パラメータ

e

イベント データ格納している WizardNavigationEventArgs。

解説解説
使用例使用例

SideBarButtonClick イベントイベント ハンドラ指定する方法次のコード例示しますSideBarButtonClick イベント発生するたびに、Label1Text プロパティメッセージ書き込まれます。このメッセージには、クリックされたサイドバー領域に関する情報含まれます。

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

  Sub OnSideBarButtonClick(ByVal sender As
 Object, ByVal e As WizardNavigationEventArgs)
    ' When a button in the sidebar area is clicked, put a message
    ' in Label1 to be displayed in the header area.
    Dim tempLabel As Label = CType(Wizard1.FindControl("Label1"),
 Label)
    If Not tempLabel Is
 Nothing Then
      tempLabel.Text = "You clicked the button for Step "
 & _
        (e.NextStepIndex + 1) & "."
    End If
  End Sub

</script>

<html  >
  <body>
    <form id="form1" runat="server">
      <asp:Wizard id="Wizard1" 
        runat="server" 
        onsidebarbuttonclick="OnSideBarButtonClick">
        <WizardSteps>
          <asp:WizardStep id="WizardStep1" 
            runat="server" 
            title="Step 1">
          </asp:WizardStep>
          <asp:WizardStep id="WizardStep2" 
            runat="server" 
            title="Step 2">
          </asp:WizardStep>
          <asp:WizardStep id="WizardStep3" 
            runat="server" 
            title="Step 3">
          </asp:WizardStep>
        </WizardSteps>
        <HeaderTemplate>
          <b>SideBarButtonClick Example</b>
          &nbsp;<br />
          <asp:Label id="Label1" 
            runat="server" 
            width="208px" 
            height="19px">
          </asp:Label>
        </HeaderTemplate>
      </asp:Wizard>
    </form>
  </body>
</html>
<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

  void OnSideBarButtonClick(object sender, WizardNavigationEventArgs
 e)
  {
    // When a button in the sidebar area is clicked, put a message
    // in Label1 to be displayed in the header area.
    Label tempLabel = (Label)Wizard1.FindControl("Label1");
    if (tempLabel != null)
    {
      tempLabel.Text = "You clicked the button for Step "
 + 
        (e.NextStepIndex + 1) + ".";
    }
  }

</script>

<html  >
  <body>
    <form id="form1" runat="server">
      <asp:Wizard id="Wizard1" 
        runat="server" 
        onsidebarbuttonclick="OnSideBarButtonClick">
        <WizardSteps>
          <asp:WizardStep id="WizardStep1" 
            runat="server" 
            title="Step 1">
          </asp:WizardStep>
          <asp:WizardStep id="WizardStep2" 
            runat="server" 
            title="Step 2">
          </asp:WizardStep>
          <asp:WizardStep id="WizardStep3" 
            runat="server" 
            title="Step 3">
          </asp:WizardStep>
        </WizardSteps>
        <HeaderTemplate>
          <b>SideBarButtonClick Example</b>
          &nbsp;<br />
          <asp:Label id="Label1" 
            runat="server" 
            width="208px" 
            height="19px">
          </asp:Label>
        </HeaderTemplate>
      </asp:Wizard>
    </form>
  </body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

Wizard.OnSideBarButtonClick メソッドのお隣キーワード
検索ランキング

   

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



Wizard.OnSideBarButtonClick メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS