a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
830 lines
55 KiB
XML
830 lines
55 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<Type Name="Button" FullName="System.Web.UI.WebControls.Button">
|
||
<TypeSignature Language="C#" Maintainer="auto" Value="public class Button : System.Web.UI.WebControls.WebControl, System.Web.UI.IPostBackEventHandler, System.Web.UI.WebControls.IButtonControl" />
|
||
<AssemblyInfo>
|
||
<AssemblyName>System.Web</AssemblyName>
|
||
<AssemblyPublicKey>
|
||
</AssemblyPublicKey>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
||
<Base>
|
||
<BaseTypeName>System.Web.UI.WebControls.WebControl</BaseTypeName>
|
||
</Base>
|
||
<Interfaces>
|
||
<Interface>
|
||
<InterfaceName>System.Web.UI.IPostBackEventHandler</InterfaceName>
|
||
</Interface>
|
||
<Interface>
|
||
<InterfaceName>System.Web.UI.WebControls.IButtonControl</InterfaceName>
|
||
</Interface>
|
||
</Interfaces>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.SupportsEventValidation</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.ToolboxData("<{0}:Button runat="server" Text="Button"></{0}:Button>")</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.Designer("System.Web.UI.Design.WebControls.ButtonDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner")</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultProperty("Text")</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.DataBindingHandler("System.Web.UI.Design.TextDataBindingHandler, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultEvent("Click")</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>In this topic:</para>
|
||
<list type="bullet">
|
||
<item>
|
||
<para>
|
||
<format type="text/html">
|
||
<a href="#Introduction">Introduction</a>
|
||
</format>
|
||
</para>
|
||
</item>
|
||
<item>
|
||
<para>
|
||
<format type="text/html">
|
||
<a href="#ButtonPostbackBehaviorandServerEvents">Button Postback Behavior and Server Events</a>
|
||
</format>
|
||
</para>
|
||
</item>
|
||
<item>
|
||
<para>
|
||
<format type="text/html">
|
||
<a href="#HandlingButtonEventsinClientScript">Handling Button Events in Client Script</a>
|
||
</format>
|
||
</para>
|
||
</item>
|
||
<item>
|
||
<para>
|
||
<format type="text/html">
|
||
<a href="#ButtonControlsAndValidation">Button Controls and Validation</a>
|
||
</format>
|
||
</para>
|
||
</item>
|
||
<item>
|
||
<para>
|
||
<format type="text/html">
|
||
<a href="#ButtonsInDataControls">Buttons in Data Controls</a>
|
||
</format>
|
||
</para>
|
||
</item>
|
||
<item>
|
||
<para>
|
||
<format type="text/html">
|
||
<a href="#BindingDataToTheControls">Binding Data to the Controls</a>
|
||
</format>
|
||
</para>
|
||
</item>
|
||
<item>
|
||
<para>
|
||
<format type="text/html">
|
||
<a href="#UsingButtonsWithUpdatePanelControls">Using Buttons with UpdatePanel Controls</a>
|
||
</format>
|
||
</para>
|
||
</item>
|
||
<item>
|
||
<para>
|
||
<format type="text/html">
|
||
<a href="#DeclarativeSyntax">Declarative Syntax</a>
|
||
</format>
|
||
</para>
|
||
</item>
|
||
</list>
|
||
<format type="text/html">
|
||
<a href="#Introduction" />
|
||
</format>
|
||
<format type="text/html">
|
||
<h2>Introduction</h2>
|
||
</format>
|
||
<para>Use the <see cref="T:System.Web.UI.WebControls.Button" /> control to create a push button on the Web page that lets users to post a page to the server. The control triggers an event in server code that you can handle to respond to the postback. It can also raise an event in client script that you can handle before the page is posted or that can run and then cancel submission of the page.</para>
|
||
<block subset="none" type="note">
|
||
<para>ASP.NET includes several kinds of button controls, each of which appears differently on Web pages. They are the <see cref="T:System.Web.UI.WebControls.Button" /> control, which renders as a push button; the <see cref="T:System.Web.UI.WebControls.LinkButton" /> control, which renders as a link; and the <see cref="T:System.Web.UI.WebControls.ImageButton" /> control, which renders as an image; and the <see cref="T:System.Web.UI.WebControls.ImageMap" /> control, which lets you create a graphic that has hotspots that users can click. By default, all button controls submit the page when clicked. You can also use the <see cref="T:System.Web.UI.HtmlControls.HtmlButton" /> and <see cref="T:System.Web.UI.HtmlControls.HtmlInputButton" /> controls to create buttons on the page that are programmable in server code. For details about the differences between HTML and Web server controls, see <format type="text/html"><a href="0d4854a3-6e79-4b7b-a27f-ac57cd9c2a84">Introduction to ASP.NET Web Server Controls</a></format>.</para>
|
||
</block>
|
||
<para>By default, a <see cref="T:System.Web.UI.WebControls.Button" /> control is a Submit button. A Submit button does not have a command name (specified by the <see cref="P:System.Web.UI.WebControls.Button.CommandName" /> property) associated with the button and simply posts the Web page back to the server. You can provide an event handler for the <see cref="E:System.Web.UI.WebControls.Button.Click" /> event to programmatically control the actions performed when the Submit button is clicked.</para>
|
||
<para>A Command button has a command name associated with the button, such as Sort, by setting the <see cref="P:System.Web.UI.WebControls.Button.CommandName" /> property. This allows you to create multiple <see cref="T:System.Web.UI.WebControls.Button" /> controls on a Web page and programmatically determine which <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked. You can also use the <see cref="P:System.Web.UI.WebControls.Button.CommandArgument" /> property with a command button to provide additional information about the command to perform, such as Ascending. You can provide an event handler for the <see cref="E:System.Web.UI.WebControls.Button.Command" /> event to programmatically control the actions performed when the Command button is clicked.</para>
|
||
<format type="text/html">
|
||
<a href="#ButtonPostbackBehaviorandServerEvents" />
|
||
</format>
|
||
<format type="text/html">
|
||
<h2>Button Postback Behavior and Server Events</h2>
|
||
</format>
|
||
<para>When a user clicks any Web server control button, the page is sent to the server. This causes the Web page to be processed and any pending events to be raised in server-based code. When all page and control processing has finished, the page renders itself to the browser again.</para>
|
||
<para>The buttons can raise their own <see cref="E:System.Web.UI.WebControls.Button.Click" /> events or <see cref="E:System.Web.UI.WebControls.Button.Command" /> event, which you can handle by using server-based code. This is different than events in traditional HTML pages or in client-based Web applications, where a button's onclick event is handled by using JavaScript that runs in the client. For more information, see <format type="text/html"><a href="6304bff7-1b0e-4641-8acb-6d3b0badc4a3">ASP.NET Web Server Control Event Model</a></format>.</para>
|
||
<para>When users click a button control, the page is posted back to the server. By default, the page is posted back to itself, </para>
|
||
<para>You can configure buttons to post the current page to another page. This can be useful for creating multi-page forms. For details, see <format type="text/html"><a href="fedf234e-b7c4-4644-a9e8-c1c0870b043b">Cross-Page Posting in an ASP.NET Web Page</a></format>.</para>
|
||
<format type="text/html">
|
||
<a href="#HandlingButtonEventsinClientScript" />
|
||
</format>
|
||
<format type="text/html">
|
||
<h2>Handling Button Events in Client Script</h2>
|
||
</format>
|
||
<para>Button controls can raise both server events and client events. Server events occur after postback, and they are handled in the server-side code that you write for the page. Client events are handled in client script, typically ECMAScript (JavaScript), and are raised before the page is submitted. By adding client-side events to ASP.NET button controls, you can perform tasks such as displaying confirmation dialog boxes before submitting the page, and potentially cancel the submission. For details, see <format type="text/html"><a href="13edb6b9-2dea-43c6-b8c1-a47207de19aa">Client Script in ASP.NET Web Pages</a></format> and <format type="text/html"><a href="1ab97f0b-1c38-4897-85b0-ac915f6a182b">How to: Respond to Button Web Server Control Events in Client Script</a></format>.</para>
|
||
<para>You might also want the <see cref="T:System.Web.UI.WebControls.Button" /> control to also use client script to perform the postback (instead of simply performing an HTTP POST operation). This can be useful if you want to programmatically manipulate the postback, such as attaching it to other elements on the page. You can set the <see cref="T:System.Web.UI.WebControls.Button" /> control's <see cref="P:System.Web.UI.WebControls.Button.UseSubmitBehavior" /> property to true to cause the <see cref="T:System.Web.UI.WebControls.Button" /> control to use client-script based postback.</para>
|
||
<format type="text/html">
|
||
<a href="#ButtonControlsAndValidation" />
|
||
</format>
|
||
<format type="text/html">
|
||
<h2>Button Controls and Validation</h2>
|
||
</format>
|
||
<para>If a page contains ASP.NET validator controls, by default, clicking a button control causes the validator control to perform its check. If client-side validation is enabled for a validator control, the page is not submitted if a validation check has failed.</para>
|
||
<para>The following table describes the properties supported by button controls that enable you to control the validation process more precisely.</para>
|
||
<list type="table">
|
||
<listheader>
|
||
<item>
|
||
<term>
|
||
<para>Property</para>
|
||
</term>
|
||
<description>
|
||
<para>Description</para>
|
||
</description>
|
||
</item>
|
||
</listheader>
|
||
<item>
|
||
<term>
|
||
<para>
|
||
<see cref="P:System.Web.UI.WebControls.Button.CausesValidation" /> </para>
|
||
</term>
|
||
<description>
|
||
<para>Specifies whether clicking the button also performs a validation check. Set this property to false to prevent a validation check.</para>
|
||
</description>
|
||
</item>
|
||
<item>
|
||
<term>
|
||
<para>
|
||
<see cref="P:System.Web.UI.WebControls.Button.ValidationGroup" /> </para>
|
||
</term>
|
||
<description>
|
||
<para>Enables you to specify which validators on the page are called when the button is clicked. If no validation groups are established, a button click calls all of the validators that are on the page.</para>
|
||
</description>
|
||
</item>
|
||
</list>
|
||
<para>For more information, see <format type="text/html"><a href="4ad3dacb-89e0-4cee-89ac-40a3f2a85461">Introduction to Validating User Input in ASP.NET Web Pages</a></format>.</para>
|
||
<format type="text/html">
|
||
<a href="#ButtonsInDataControls" />
|
||
</format>
|
||
<format type="text/html">
|
||
<h2>Buttons in Data Controls</h2>
|
||
</format>
|
||
<para>Button Web server controls are often used in data controls, such as in the <see cref="T:System.Web.UI.WebControls.DataList" />, <see cref="T:System.Web.UI.WebControls.GridView" />, and <see cref="T:System.Web.UI.WebControls.Repeater" /> list controls. In those cases, you typically do not respond directly to the button click event. Instead, a button in a data control raises an event that is specific to the data control. For example, in the <see cref="T:System.Web.UI.WebControls.DataList" /> control, a button might raise the <see cref="T:System.Web.UI.WebControls.DataList" /> control's <see cref="E:System.Web.UI.WebControls.DataList.ItemCommand" /> event instead of raising the <see cref="T:System.Web.UI.WebControls.Button" /> control's <see cref="E:System.Web.UI.WebControls.Button.Click" /> event.</para>
|
||
<para>Because data-bound list controls can contain many buttons, you can set the button's <see cref="P:System.Web.UI.WebControls.Button.CommandArgument" /> property to specify a value to pass as part of the event. You can then test for this argument to see which button was clicked.</para>
|
||
<format type="text/html">
|
||
<a href="#BindingDataToTheControls" />
|
||
</format>
|
||
<format type="text/html">
|
||
<h2>Binding Data to the Controls</h2>
|
||
</format>
|
||
<para>You can bind the button Web server controls to a data source in order to control their property settings dynamically. For example, you can set a button's <see cref="P:System.Web.UI.WebControls.Button.Text" /> property by using data binding.</para>
|
||
<format type="text/html">
|
||
<a href="#UsingButtonsWithUpdatePanelControls" />
|
||
</format>
|
||
<format type="text/html">
|
||
<h2>Using Buttons with UpdatePanel Controls</h2>
|
||
</format>
|
||
<para>Partial-page rendering makes it possible to refresh portions of a page without a postback. <see cref="T:System.Web.UI.UpdatePanel" /> controls enable you to mark parts of the page that participate in partial-page rendering. By default, the behavior of controls inside an <see cref="T:System.Web.UI.UpdatePanel" /> control, including <see cref="T:System.Web.UI.WebControls.Button" /> controls, is to perform an asynchronous postback instead of a postback. This refreshes only the contents of the <see cref="T:System.Web.UI.UpdatePanel" /> control from which the postback originates. </para>
|
||
<para>In addition to the scenario of a <see cref="T:System.Web.UI.WebControls.Button" /> control that is inside an <see cref="T:System.Web.UI.UpdatePanel" /> control, you can use <see cref="T:System.Web.UI.WebControls.Button" /> controls with <see cref="T:System.Web.UI.UpdatePanel" /> controls in the following scenarios:</para>
|
||
<list type="bullet">
|
||
<item>
|
||
<para>Defining a <see cref="T:System.Web.UI.WebControls.Button" /> control that is outside an <see cref="T:System.Web.UI.UpdatePanel" /> control as an <see cref="T:System.Web.UI.AsyncPostBackTrigger" /> control for that panel. When the button is clicked, it performs an asynchronous postback and refreshes the contents of the panel.</para>
|
||
</item>
|
||
<item>
|
||
<para>Defining a <see cref="T:System.Web.UI.WebControls.Button" /> control that is inside an <see cref="T:System.Web.UI.UpdatePanel" /> control as a <see cref="T:System.Web.UI.PostBackTrigger" /> for the panel. When the button is clicked, it performs a postback even though it is inside an <see cref="T:System.Web.UI.UpdatePanel" /> control.</para>
|
||
</item>
|
||
</list>
|
||
<para>For more information about partial-page rendering and using <see cref="T:System.Web.UI.UpdatePanel" /> controls, see <format type="text/html"><a href="29a2265d-9674-4c19-b70e-e5560ee9689a">UpdatePanel Control Overview</a></format> and <format type="text/html"><a href="5c12736d-d9e9-464a-9388-3fe0f9f49e49">Partial-Page Rendering Overview</a></format>.</para>
|
||
<format type="text/html">
|
||
<a href="#DeclarativeSyntax" />
|
||
</format>
|
||
<format type="text/html">
|
||
<h2>Declarative Syntax</h2>
|
||
</format>
|
||
<code><asp:Button
|
||
    AccessKey="string"
|
||
    BackColor="color name|#dddddd"
|
||
    BorderColor="color name|#dddddd"
|
||
    BorderStyle="<codeFeaturedElement>NotSet</codeFeaturedElement>|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
|
||
Inset|Outset"
|
||
    BorderWidth="size"
|
||
    CausesValidation="<codeFeaturedElement>True</codeFeaturedElement>|False"
|
||
    CommandArgument="string"
|
||
    CommandName="string"
|
||
    CssClass="string"
|
||
    Enabled="<codeFeaturedElement>True</codeFeaturedElement>|False"
|
||
    EnableTheming="<codeFeaturedElement>True</codeFeaturedElement>|False"
|
||
    EnableViewState="<codeFeaturedElement>True</codeFeaturedElement>|False"
|
||
    Font-Bold="True|<codeFeaturedElement>False</codeFeaturedElement>"
|
||
    Font-Italic="True|<codeFeaturedElement>False</codeFeaturedElement>"
|
||
    Font-Names="string"
|
||
    Font-Overline="True|<codeFeaturedElement>False</codeFeaturedElement>"
|
||
    Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
|
||
Large|X-Large|XX-Large"
|
||
    Font-Strikeout="True|<codeFeaturedElement>False</codeFeaturedElement>"
|
||
    Font-Underline="True|<codeFeaturedElement>False</codeFeaturedElement>"
|
||
    ForeColor="color name|#dddddd"
|
||
    Height="size"
|
||
    ID="string"
|
||
    OnClick="Click event handler"
|
||
    OnClientClick="string"
|
||
    OnCommand="Command event handler"
|
||
    OnDataBinding="DataBinding event handler"
|
||
    OnDisposed="Disposed event handler"
|
||
    OnInit="Init event handler"
|
||
    OnLoad="Load event handler"
|
||
    OnPreRender="PreRender event handler"
|
||
    OnUnload="Unload event handler"
|
||
    PostBackUrl="uri"
|
||
    runat="server"
|
||
    SkinID="string"
|
||
    Style="string"
|
||
    TabIndex="integer"
|
||
    Text="string"
|
||
    ToolTip="string"
|
||
    UseSubmitBehavior="<codeFeaturedElement>True</codeFeaturedElement>|False"
|
||
    ValidationGroup="string"
|
||
    Visible="<codeFeaturedElement>True</codeFeaturedElement>|False"
|
||
    Width="size"
|
||
/></code>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Displays a push button control on the Web page.</para>
|
||
</summary>
|
||
</Docs>
|
||
<Members>
|
||
<Member MemberName=".ctor">
|
||
<MemberSignature Language="C#" Value="public Button ();" />
|
||
<MemberType>Constructor</MemberType>
|
||
<ReturnValue />
|
||
<Parameters />
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use this constructor to create and initialize a new instance of the <see cref="T:System.Web.UI.WebControls.Button" /> class.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.Button" /> class.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName="AddAttributesToRender">
|
||
<MemberSignature Language="C#" Value="protected override void AddAttributesToRender (System.Web.UI.HtmlTextWriter writer);" />
|
||
<MemberType>Method</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="writer" Type="System.Web.UI.HtmlTextWriter" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>To be added</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Adds the attributes of the <see cref="T:System.Web.UI.WebControls.Button" /> control to the output stream for rendering on the client.</para>
|
||
</summary>
|
||
<param name="writer">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Web.UI.HtmlTextWriter" /> that contains the output stream to render on the client. </param>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName="CausesValidation">
|
||
<MemberSignature Language="C#" Value="public virtual bool CausesValidation { set; get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.Boolean</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<value>To be added: an object of type 'bool'</value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>By default, page validation is performed when a <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked. Page validation determines whether the input controls associated with a validation control on the page all pass the validation rules specified by the validation control.</para>
|
||
<para>You can specify or determine whether validation is performed on both the client and the server when a <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked by using the <see cref="P:System.Web.UI.WebControls.Button.CausesValidation" /> property. To prevent validation from being performed, set the <see cref="P:System.Web.UI.WebControls.Button.CausesValidation" /> property to false.</para>
|
||
<block subset="none" type="note">
|
||
<para>You should set the <see cref="P:System.Web.UI.WebControls.Button.CausesValidation" /> property to false when you are using the <see cref="P:System.Web.UI.WebControls.Button.PostBackUrl" /> property to post back to a different page. You should explicitly check validation when posting back to a different page. For an example, see the Remarks section of the <see cref="P:System.Web.UI.WebControls.Button.PostBackUrl" /> property.</para>
|
||
</block>
|
||
<para>This property is commonly set to false for a reset or clear button to prevent validation from being performed when the button is clicked.</para>
|
||
<para>When the value of the <see cref="P:System.Web.UI.WebControls.Button.CausesValidation" /> property is set to true, you can also use the <see cref="P:System.Web.UI.WebControls.Button.ValidationGroup" /> property to specify the name of the validation group for which the <see cref="T:System.Web.UI.WebControls.Button" /> control causes validation.</para>
|
||
<para>This property cannot be set by themes or style sheet themes. For more information, see <see cref="T:System.Web.UI.ThemeableAttribute" /> and <format type="text/html"><a href="5df3ebbd-d46c-4502-9406-02f9df4ef2c3">ASP.NET Themes Overview</a></format>.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets or sets a value indicating whether validation is performed when the <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.Themeable(false)</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultValue(true)</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
</Member>
|
||
<Member MemberName="Click">
|
||
<MemberSignature Language="C#" Value="public event EventHandler Click;" />
|
||
<MemberType>Event</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.EventHandler</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>The <see cref="E:System.Web.UI.WebControls.Button.Click" /> event is raised when the <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked. This event is commonly used when no command name is associated with the <see cref="T:System.Web.UI.WebControls.Button" /> control (for instance, with a Submit button).</para>
|
||
<para>For more information about handling events, see <format type="text/html"><a href="01E4F1BC-E55E-413F-98C7-6588493E5F67">Consuming Events</a></format>.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Occurs when the <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName="Command">
|
||
<MemberSignature Language="C#" Value="public event System.Web.UI.WebControls.CommandEventHandler Command;" />
|
||
<MemberType>Event</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.Web.UI.WebControls.CommandEventHandler</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>The <see cref="E:System.Web.UI.WebControls.Button.Command" /> event is raised when the <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked. This event is commonly used when a command name, such as Sort, is associated with the <see cref="T:System.Web.UI.WebControls.Button" /> control. This allows you to create multiple <see cref="T:System.Web.UI.WebControls.Button" /> controls on a Web page and programmatically determine which <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked.</para>
|
||
<block subset="none" type="note">
|
||
<para>The <see cref="E:System.Web.UI.WebControls.Button.Command" /> event is raised through the control hierarchy in the form of the BubbleEvent.</para>
|
||
</block>
|
||
<para>For more information about handling events, see <format type="text/html"><a href="01E4F1BC-E55E-413F-98C7-6588493E5F67">Consuming Events</a></format>.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Occurs when the <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName="CommandArgument">
|
||
<MemberSignature Language="C#" Value="public string CommandArgument { set; get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.String</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<value>To be added: an object of type 'string'</value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use the <see cref="P:System.Web.UI.WebControls.Button.CommandArgument" /> property to specify a parameter that compliments the <see cref="P:System.Web.UI.WebControls.Button.CommandName" /> property.</para>
|
||
<block subset="none" type="note">
|
||
<para>Although you can set the <see cref="P:System.Web.UI.WebControls.Button.CommandArgument" /> property by itself, it is normally only used when the <see cref="P:System.Web.UI.WebControls.Button.CommandName" /> property is also set.</para>
|
||
</block>
|
||
<para>The <see cref="P:System.Web.UI.WebControls.Button.CommandArgument" /> property complements the <see cref="P:System.Web.UI.WebControls.Button.CommandName" /> property by allowing you to provide additional information about the command to perform. For example, if you set the <see cref="P:System.Web.UI.WebControls.Button.CommandName" /> property to Sort and the <see cref="P:System.Web.UI.WebControls.Button.CommandArgument" /> property to Ascending, you specify a command to sort in ascending order.</para>
|
||
<para>This property cannot be set by themes or style sheet themes. For more information, see <see cref="T:System.Web.UI.ThemeableAttribute" /> and <format type="text/html"><a href="5df3ebbd-d46c-4502-9406-02f9df4ef2c3">ASP.NET Themes Overview</a></format>.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets or sets an optional parameter passed to the <see cref="E:System.Web.UI.WebControls.Button.Command" /> event along with the associated <see cref="P:System.Web.UI.WebControls.Button.CommandName" />.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.Themeable(false)</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.Bindable(true)</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultValue("")</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
</Member>
|
||
<Member MemberName="CommandName">
|
||
<MemberSignature Language="C#" Value="public string CommandName { set; get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.String</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<value>To be added: an object of type 'string'</value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>When you have multiple <see cref="T:System.Web.UI.WebControls.Button" /> controls on a Web page, use the <see cref="P:System.Web.UI.WebControls.Button.CommandName" /> property to specify or determine the command name associated with each <see cref="T:System.Web.UI.WebControls.Button" /> control. You can set the <see cref="P:System.Web.UI.WebControls.Button.CommandName" /> property with any string that identifies the command to perform. You can then programmatically determine the command name of the <see cref="T:System.Web.UI.WebControls.Button" /> control and perform the appropriate actions.</para>
|
||
<para>Additional information about the command, such as Ascending, may be specified by using the <see cref="P:System.Web.UI.WebControls.Button.CommandArgument" /> property.</para>
|
||
<para>This property cannot be set by themes or style sheet themes. For more information, see <see cref="T:System.Web.UI.ThemeableAttribute" /> and <format type="text/html"><a href="5df3ebbd-d46c-4502-9406-02f9df4ef2c3">ASP.NET Themes Overview</a></format>.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets or sets the command name associated with the <see cref="T:System.Web.UI.WebControls.Button" /> control that is passed to the <see cref="E:System.Web.UI.WebControls.Button.Command" /> event.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.Themeable(false)</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultValue("")</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
</Member>
|
||
<Member MemberName="GetPostBackOptions">
|
||
<MemberSignature Language="C#" Value="protected virtual System.Web.UI.PostBackOptions GetPostBackOptions ();" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Web.UI.PostBackOptions</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>The <see cref="M:System.Web.UI.WebControls.Button.GetPostBackOptions" /> method creates a <see cref="T:System.Web.UI.PostBackOptions" /> object that represents the <see cref="T:System.Web.UI.WebControls.Button" /> control's postback behavior. The <see cref="T:System.Web.UI.PostBackOptions" /> object is then typically passed to the <see cref="M:System.Web.UI.ClientScriptManager.GetPostBackEventReference(System.Web.UI.PostBackOptions)" /> method, which is used to obtain a reference to a client-side script function that, when invoked, causes the server to post back to the page.</para>
|
||
<para>This method is used primarily by control developers when extending the <see cref="T:System.Web.UI.WebControls.Button" /> class.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Creates a <see cref="T:System.Web.UI.PostBackOptions" /> object that represents the <see cref="T:System.Web.UI.WebControls.Button" /> control's postback behavior.</para>
|
||
</summary>
|
||
<returns>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>A <see cref="T:System.Web.UI.PostBackOptions" /> that represents the <see cref="T:System.Web.UI.WebControls.Button" /> control's postback behavior.</para>
|
||
</returns>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="OnClick">
|
||
<MemberSignature Language="C#" Value="protected virtual void OnClick (EventArgs e);" />
|
||
<MemberType>Method</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="e" Type="System.EventArgs" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>The <see cref="E:System.Web.UI.WebControls.Button.Click" /> event is raised when the <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked. This event is commonly used when no command name is associated with the <see cref="T:System.Web.UI.WebControls.Button" /> control (for instance, with a Submit button).</para>
|
||
<para>Raising an event invokes the event handler through a delegate. For more information, see <format type="text/html"><a href="F2ADAF01-1ED1-42E1-8C31-8D467E7E0EE2">Raising an Event</a></format>.</para>
|
||
<para>The <see cref="M:System.Web.UI.WebControls.Button.OnClick(System.EventArgs)" /> method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Raises the <see cref="E:System.Web.UI.WebControls.Button.Click" /> event of the <see cref="T:System.Web.UI.WebControls.Button" /> control.</para>
|
||
</summary>
|
||
<param name="e">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The event data. </param>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName="OnClientClick">
|
||
<MemberSignature Language="C#" Value="public virtual string OnClientClick { set; get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultValue("")</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.Themeable(false)</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
<ReturnValue>
|
||
<ReturnType>System.String</ReturnType>
|
||
</ReturnValue>
|
||
<Docs>
|
||
<value>To be added.</value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use the <see cref="P:System.Web.UI.WebControls.Button.OnClientClick" /> property to specify additional client-side script that executes when a <see cref="T:System.Web.UI.WebControls.Button" /> control's <see cref="E:System.Web.UI.WebControls.Button.Click" /> event is raised. The script that you specify for this property is rendered in the <see cref="T:System.Web.UI.WebControls.Button" /> control's OnClick attribute in addition to the control's predefined client-side script.</para>
|
||
<para>This property cannot be set by themes or style sheet themes. For more information, see <see cref="T:System.Web.UI.ThemeableAttribute" /> and <format type="text/html"><a href="5df3ebbd-d46c-4502-9406-02f9df4ef2c3">ASP.NET Themes Overview</a></format>.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets or sets the client-side script that executes when a <see cref="T:System.Web.UI.WebControls.Button" /> control's <see cref="E:System.Web.UI.WebControls.Button.Click" /> event is raised.</para>
|
||
</summary>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="OnCommand">
|
||
<MemberSignature Language="C#" Value="protected virtual void OnCommand (System.Web.UI.WebControls.CommandEventArgs e);" />
|
||
<MemberType>Method</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="e" Type="System.Web.UI.WebControls.CommandEventArgs" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>The <see cref="E:System.Web.UI.WebControls.Button.Command" /> event is raised when the <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked. This event is commonly used when a command name, such as Sort, is associated with the <see cref="T:System.Web.UI.WebControls.Button" /> control. This allows you to create multiple <see cref="T:System.Web.UI.WebControls.Button" /> controls on a Web page and programmatically determine which <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked.</para>
|
||
<block subset="none" type="note">
|
||
<para>The <see cref="E:System.Web.UI.WebControls.Button.Command" /> event is raised through the control hierarchy in the form of the BubbleEvent.</para>
|
||
</block>
|
||
<para>Raising an event invokes the event handler through a delegate. For more information, see <format type="text/html"><a href="F2ADAF01-1ED1-42E1-8C31-8D467E7E0EE2">Raising an Event</a></format>.</para>
|
||
<para>The <see cref="M:System.Web.UI.WebControls.Button.OnCommand(System.Web.UI.WebControls.CommandEventArgs)" /> method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Raises the <see cref="E:System.Web.UI.WebControls.Button.Command" /> event of the <see cref="T:System.Web.UI.WebControls.Button" /> control.</para>
|
||
</summary>
|
||
<param name="e">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The event data. </param>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName="OnPreRender">
|
||
<MemberSignature Language="C#" Value="protected override void OnPreRender (EventArgs e);" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="e" Type="System.EventArgs" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>The <see cref="M:System.Web.UI.WebControls.Button.OnPreRender(System.EventArgs)" /> method is used primarily by control developers when deriving a custom class from the <see cref="T:System.Web.UI.WebControls.Button" /> control.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Determines whether the button has been clicked prior to rendering on the client.</para>
|
||
</summary>
|
||
<param name="e">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The event data.</param>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="PostBackUrl">
|
||
<MemberSignature Language="C#" Value="public virtual string PostBackUrl { set; get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.UrlProperty("*.aspx")</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.Themeable(false)</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.Editor("System.Web.UI.Design.UrlEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultValue("")</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
<ReturnValue>
|
||
<ReturnType>System.String</ReturnType>
|
||
</ReturnValue>
|
||
<Docs>
|
||
<value>To be added.</value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>The <see cref="P:System.Web.UI.WebControls.Button.PostBackUrl" /> property allows you to perform a cross-page post using the <see cref="T:System.Web.UI.WebControls.Button" /> control. </para>
|
||
<block subset="none" type="note">
|
||
<para>Only correctly specified paths work with this property. For example, relative paths (Test/default.aspx), absolute paths (https://localhost/WebApp/default.aspx) and virtual (~\Test\default.aspx) work correctly. Incorrectly formed paths such as "/Test/default.aspx" or "\Test\default.aspx" do not work. See <format type="text/html"><a href="2447f50c-b849-483c-8093-85ed53e7a5bd">ASP.NET Web Site Paths</a></format> for a discussion on creating correct paths. </para>
|
||
</block>
|
||
<para>Set the <see cref="P:System.Web.UI.WebControls.Button.PostBackUrl" /> property to the URL of the Web page to post to when the <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked. For example, specifying Page2.aspx causes the page that contains the <see cref="T:System.Web.UI.WebControls.Button" /> control to post to Page2.aspx. If you do not specify a value for the <see cref="P:System.Web.UI.WebControls.Button.PostBackUrl" /> property, the page posts back to itself.</para>
|
||
<block subset="none" type="note">
|
||
<para>When performing a cross-page postback with controls with server-side validation, you should check that the page's <see cref="P:System.Web.UI.Page.IsValid" /> property is true before processing the postback. In the case of a cross-page postback, the page to check is the <see cref="P:System.Web.UI.Page.PreviousPage" />. The following VB code shows how this is done:</para>
|
||
</block>
|
||
<code>Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
|
||
If Page.PreviousPage.IsValid Then
|
||
' Handle the post back
|
||
Else
|
||
Response.Write("Invalid")
|
||
End If
|
||
End Sub</code>
|
||
<para>For more information on cross-page posting techniques, see <format type="text/html"><a href="fedf234e-b7c4-4644-a9e8-c1c0870b043b">Cross-Page Posting in an ASP.NET Web Page</a></format>.</para>
|
||
<para>This property cannot be set by themes or style sheet themes. For more information, see <see cref="T:System.Web.UI.ThemeableAttribute" /> and <format type="text/html"><a href="5df3ebbd-d46c-4502-9406-02f9df4ef2c3">ASP.NET Themes Overview</a></format>.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets or sets the URL of the page to post to from the current page when the <see cref="T:System.Web.UI.WebControls.Button" /> control is clicked.</para>
|
||
</summary>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="RaisePostBackEvent">
|
||
<MemberSignature Language="C#" Value="protected virtual void RaisePostBackEvent (string eventArgument);" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="eventArgument" Type="System.String" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>This event is used internally by the <see cref="T:System.Web.UI.WebControls.Button" /> control, when it is clicked, to raise a <see cref="E:System.Web.UI.WebControls.Button.Click" /> event, and if defined, a <see cref="E:System.Web.UI.WebControls.Button.Command" /> event. </para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Raises events for the <see cref="T:System.Web.UI.WebControls.Button" /> control when it posts back to the server.</para>
|
||
</summary>
|
||
<param name="eventArgument">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The argument for the event.</param>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="RenderContents">
|
||
<MemberSignature Language="C#" Value="protected override void RenderContents (System.Web.UI.HtmlTextWriter writer);" />
|
||
<MemberType>Method</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="writer" Type="System.Web.UI.HtmlTextWriter" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>To be added</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Renders the contents of the control to the specified writer.</para>
|
||
</summary>
|
||
<param name="writer">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Web.UI.HtmlTextWriter" /> object that represents the output stream to render HTML content on the client.</param>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
<Member MemberName="System.Web.UI.IPostBackEventHandler.RaisePostBackEvent">
|
||
<MemberSignature Language="C#" Value="void IPostBackEventHandler.RaisePostBackEvent (string eventArgument);" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="eventArgument" Type="System.String" />
|
||
</Parameters>
|
||
<Docs>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>This event is used internally by the <see cref="T:System.Web.UI.WebControls.Button" /> control, when it is clicked, to raise a <see cref="E:System.Web.UI.WebControls.Button.Click" /> event, and if defined, a <see cref="E:System.Web.UI.WebControls.Button.Command" /> event. </para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Raises events for the <see cref="T:System.Web.UI.WebControls.Button" /> control when it posts back to the server.</para>
|
||
</summary>
|
||
<param name="eventArgument">
|
||
<attribution license="cc4" from="Microsoft" modified="false" />The argument for the event.</param>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="Text">
|
||
<MemberSignature Language="C#" Value="public string Text { set; get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<ReturnValue>
|
||
<ReturnType>System.String</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<value>To be added: an object of type 'string'</value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use the <see cref="P:System.Web.UI.WebControls.Button.Text" /> property to specify or determine the caption to display in the <see cref="T:System.Web.UI.WebControls.Button" /> control.</para>
|
||
<para>The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see <see cref="T:System.ComponentModel.LocalizableAttribute" /> and <format type="text/html"><a href="8ef3838e-9d05-4236-9dd0-ceecff9df80d">ASP.NET Globalization and Localization</a></format>.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets or sets the text caption displayed in the <see cref="T:System.Web.UI.WebControls.Button" /> control.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.Localizable(true)</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.Bindable(true)</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultValue("")</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
</Member>
|
||
<Member MemberName="UseSubmitBehavior">
|
||
<MemberSignature Language="C#" Value="public virtual bool UseSubmitBehavior { set; get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.Themeable(false)</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultValue(true)</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
<ReturnValue>
|
||
<ReturnType>System.Boolean</ReturnType>
|
||
</ReturnValue>
|
||
<Docs>
|
||
<value>To be added.</value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use the <see cref="P:System.Web.UI.WebControls.Button.UseSubmitBehavior" /> property to specify whether a <see cref="T:System.Web.UI.WebControls.Button" /> control uses the client browser's submit mechanism or the ASP.NET postback mechanism. By default the value of this property is true, causing the <see cref="T:System.Web.UI.WebControls.Button" /> control to use the browser's submit mechanism. If you specify false, the ASP.NET page framework adds client-side script to the page to post the form to the server.</para>
|
||
<para>When the <see cref="P:System.Web.UI.WebControls.Button.UseSubmitBehavior" /> property is false, control developers can use the <see cref="Overload:System.Web.UI.ClientScriptManager.GetPostBackEventReference" /> method to return the client postback event for the <see cref="T:System.Web.UI.WebControls.Button" />. The string returned by the <see cref="Overload:System.Web.UI.ClientScriptManager.GetPostBackEventReference" /> method contains the text of the client-side function call and can be inserted into a client-side event handler.</para>
|
||
<para>This property cannot be set by themes or style sheet themes. For more information, see <see cref="T:System.Web.UI.ThemeableAttribute" /> and <format type="text/html"><a href="5df3ebbd-d46c-4502-9406-02f9df4ef2c3">ASP.NET Themes Overview</a></format>.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets or sets a value indicating whether the <see cref="T:System.Web.UI.WebControls.Button" /> control uses the client browser's submit mechanism or the ASP.NET postback mechanism.</para>
|
||
</summary>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="ValidationGroup">
|
||
<MemberSignature Language="C#" Value="public virtual string ValidationGroup { set; get; }" />
|
||
<MemberType>Property</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Attributes>
|
||
<Attribute>
|
||
<AttributeName>System.Web.UI.Themeable(false)</AttributeName>
|
||
</Attribute>
|
||
<Attribute>
|
||
<AttributeName>System.ComponentModel.DefaultValue("")</AttributeName>
|
||
</Attribute>
|
||
</Attributes>
|
||
<ReturnValue>
|
||
<ReturnType>System.String</ReturnType>
|
||
</ReturnValue>
|
||
<Docs>
|
||
<value>To be added.</value>
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Validation groups allow you to assign validation controls on a page to a specific category. Each validation group can be validated independently of other validation groups on the page. Use the <see cref="P:System.Web.UI.WebControls.Button.ValidationGroup" /> property to specify the name of the validation group for which the <see cref="T:System.Web.UI.WebControls.Button" /> control causes validation when it posts back to the server.</para>
|
||
<para>This property has an effect only when the value of the <see cref="P:System.Web.UI.WebControls.Button.CausesValidation" /> property is set to true. When you specify a value for the <see cref="P:System.Web.UI.WebControls.Button.ValidationGroup" /> property, only the validation controls that are part of the specified group are validated when the <see cref="T:System.Web.UI.WebControls.Button" /> control posts back to the server. If you do not specify a value for this property and the <see cref="P:System.Web.UI.WebControls.Button.CausesValidation" /> property is set to true, all validation controls on the page that are not assigned to a validation group are validated when the control posts back to the server.</para>
|
||
<para>This property cannot be set by themes or style sheet themes. For more information, see <see cref="T:System.Web.UI.ThemeableAttribute" /> and <format type="text/html"><a href="5df3ebbd-d46c-4502-9406-02f9df4ef2c3">ASP.NET Themes Overview</a></format>.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Gets or sets the group of controls for which the <see cref="T:System.Web.UI.WebControls.Button" /> control causes validation when it posts back to the server.</para>
|
||
</summary>
|
||
</Docs>
|
||
</Member>
|
||
</Members>
|
||
</Type> |