PasswordRecovery.SubmitButtonType プロパティ
アセンブリ: System.Web (system.web.dll 内)

Dim instance As PasswordRecovery Dim value As ButtonType value = instance.SubmitButtonType instance.SubmitButtonType = value
public: virtual property ButtonType SubmitButtonType { ButtonType get (); void set (ButtonType value); }
/** @property */ public ButtonType get_SubmitButtonType () /** @property */ public void set_SubmitButtonType (ButtonType value)
public function get SubmitButtonType () : ButtonType public function set SubmitButtonType (value : ButtonType)
ButtonType 値の 1 つ。既定値は Button です。


SubmitButtonType プロパティは、PasswordRecovery コントロールにエントリを送信するために使用するボタンの種類を決定します。
SubmitButtonType プロパティの各値で使用されるボタンの種類を次の表に示します。
SubmitButtonType 値 | |
---|---|
SubmitButtonImageUrl プロパティに格納された場所にあるイメージ。SubmitButtonText プロパティは、イメージの代替テキストを提供します。 | |
テンプレートを使用して PasswordRecovery コントロールの外観を定義した場合、SubmitButtonType プロパティは無効になります。

SubmitButtonType プロパティのさまざまな設定に対する PasswordRecovery コントロールの [送信] ボタンの外観を次のコード例に示します。
<%@ page language="VB"%> <script runat="server"> Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) If DropDownList1.SelectedValue = "Button" Then PasswordRecovery1.SubmitButtonType = ButtonType.Button PasswordRecovery1.SubmitButtonText = "Enter User Name" End If If DropDownList1.SelectedValue = "Image" Then PasswordRecovery1.SubmitButtonType = ButtonType.Image PasswordRecovery1.SubmitButtonImageUrl = "userNameSubmit.png" PasswordRecovery1.SubmitButtonText = "Enter User Name Image" End If If DropDownList1.SelectedValue = "Link" Then PasswordRecovery1.SubmitButtonType = ButtonType.Link PasswordRecovery1.SubmitButtonText = "Enter User Name" End If End Sub </script> <html> <head> </head> <body> <form id="Form1" runat="server"> <table border="1"> <tbody> <tr> <td> <asp:passwordrecovery id="PasswordRecovery1" runat="server" submitbuttonimageurl="userNameSubmit.png" submitbuttontext="Enter User Name"> <submitbuttonstyle font-names="Comic Sans MS" forecolor="White" backcolor="#00C000"> </submitbuttonstyle> </asp:passwordrecovery> </td> <td align="middle"> Choose a button type:<br /> <asp:dropdownlist id="DropDownList1" runat="server" onselectedindexchanged="DropDownList1_SelectedIndexChanged" autopostback="true"> <asp:listitem value="Button">Button</asp:listitem> <asp:listitem value="Image">Image</asp:listitem> <asp:listitem value="Link">Link</asp:listitem> </asp:dropdownlist> </td> </tr> </tbody> </table> </form> </body> </html>
<%@ page language="C#"%> <script runat="server"> void DropDownList1_SelectedIndexChanged(object Sender, EventArgs e) { if (DropDownList1.SelectedValue == "Button") { PasswordRecovery1.SubmitButtonType = ButtonType.Button; PasswordRecovery1.SubmitButtonText = "Enter User Name"; } if (DropDownList1.SelectedValue == "Image") { PasswordRecovery1.SubmitButtonType = ButtonType.Image; PasswordRecovery1.SubmitButtonImageUrl = "userNameSubmit.png"; PasswordRecovery1.SubmitButtonText = "Enter User Name Image"; } if (DropDownList1.SelectedValue == "Link") { PasswordRecovery1.SubmitButtonType = ButtonType.Link; PasswordRecovery1.SubmitButtonText = "Enter User Name"; } } </script> <html> <head> </head> <body> <form id="Form1" runat="server"> <table border="1"> <tbody> <tr> <td> <asp:passwordrecovery id="PasswordRecovery1" runat="server" submitbuttonimageurl="userNameSubmit.png" submitbuttontext="Enter User Name"> <submitbuttonstyle font-names="Comic Sans MS" forecolor="White" backcolor="#00C000"> </submitbuttonstyle> </asp:passwordrecovery> </td> <td align="middle"> Choose a button type:<br /> <asp:dropdownlist id="DropDownList1" runat="server" onselectedindexchanged="DropDownList1_SelectedIndexChanged" autopostback="true"> <asp:listitem value="Button">Button</asp:listitem> <asp:listitem value="Image">Image</asp:listitem> <asp:listitem value="Link">Link</asp:listitem> </asp:dropdownlist> </td> </tr> </tbody> </table> </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に収録されているすべての辞書からPasswordRecovery.SubmitButtonType プロパティを検索する場合は、下記のリンクをクリックしてください。

- PasswordRecovery.SubmitButtonType プロパティのページへのリンク