System.Web 1.0.5000.0 2.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Web.UI.HtmlControls.HtmlInputControl System.Web.UI.IPostBackDataHandler System.Web.UI.SupportsEventValidation System.ComponentModel.DefaultEvent("ServerChange") Use the control to create a radio button on a Web page. The control does not provide built-in functionality to display a caption for the radio button. To create a caption, use literal text in the Web page at the desired location. This allows you to determine where the caption is displayed relative to the radio button. For example, if you want to display the caption on the right side of the radio button, declare an control, followed by the caption text, as shown in the following code. <input type="radio" id="Radio1" name="Mode" runat="server"/> Caption Text<br> You can optionally associate a quantity with the control by setting the property. This is useful when you have multiple radio buttons and need to perform a calculation, based on the selection. controls can be grouped together by specifying a common value for the property of each radio button you want to include in the group. When you group controls together, only one radio button in the group can be selected at a time. To determine whether the control is selected, test the property. If you have a group of controls, you must iterate through the controls and test the property of each control individually. The control provides a event that is raised when the property changes values between posts to the server. This allows you to create a custom event handler that performs a specific set of instructions when the event is raised, such as data validation. For a list of initial property values for an instance of , see the constructor. Allows programmatic access to the HTML <input type= radio> element on the server. Constructor Use this constructor to create and initialize a new instance of the class. The following table shows the initial property value for an instance of . Property Initial Value The "radio" literal string. Initializes a new instance of the class. 1.0.5000.0 2.0.0.0 Property System.Boolean To be added: an object of type 'bool' Use the property to determine whether the control is selected. If you have a group of controls, you must iterate through the controls and test the property of each control individually. You can also use this property to programmatically specify whether the control is selected. You can group controls together by specifying a common value for the property of each radio button control you want to include in the group. When you group controls, only one radio button in the group can be selected at a time. The property of the selected control is set to true, while the same property is set to false for all other radio buttons in the group. Gets or sets a value indicating whether the control is selected. 1.0.5000.0 2.0.0.0 System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.ComponentModel.DefaultValue("") Method 2.0.0.0 System.Boolean The method checks to see whether the postback value of the control is different from its previous value, and if so, returns true. The method is used primarily by control developers extending the functionality of the control. Processes the postback data for the control. true if the control's state has changed as a result of the postback; otherwise, false. The key identifier for the control. The collection of all incoming name values. Property System.String a Group multiple controls by specifying a common value for the property of each radio button you want to include in the group. When you group controls, only one radio button in the group can be selected at a time. The property of the selected control is set to true, while the same property is set to false for all other radio buttons in the group. Gets or sets the name of the group that the instance of the class is associated with. 1.0.5000.0 2.0.0.0 Method System.Void The method is called just prior to rendering the control. The method is used primarily by control developers extending the functionality of the control. Raises the event and registers the control as one that requires postback handling. A that contains the event data. 1.0.5000.0 2.0.0.0 Method System.Void The event is raised when the property of the control changes values between posts to the server. This allows you to create a custom event handler that performs a specific set of instructions (such as data validation) when the event is raised. The control must have view state enabled for the event to work correctly. To enable view state for all controls on the Web Forms page, set the property to true. You can also enable view state for an individual control by setting the property to true. Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The 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. Raises the event. This allows you to create a custom event handler when the event is raised. A that contains the event data. 1.0.5000.0 2.0.0.0 Method 2.0.0.0 System.Void The method is used primarily by control developers extending the functionality of the control. Calls the method to signal the control that the state of the control has changed. Method System.Void The method writes the property as an attribute of the control and then calls the base class's method The method is used primarily by control developers extending the functionality of the control. Renders the control attributes to the specified object. An that receives the rendered output. 1.0.5000.0 2.0.0.0 Event System.EventHandler The event is raised when the property of the control changes value between posts to the server. This allows you to create a custom event handler that performs a specific set of instructions (such as data validation) when the event is raised. The control must have view state enabled for the event to work correctly. To enable view state for all controls on the Web Forms page, set the property to true. You can also enable view state for an individual control by setting the property to true. For more information about handling events, see Consuming Events. Occurs when the value of the property of the control changes between posts to the server. 1.0.5000.0 2.0.0.0 Method 1.0.5000.0 2.0.0.0 System.Boolean This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface. Implements the method by calling the method. true if the control's state has changed as a result of the postback; otherwise, false. The key identifier for the control. The collection of all incoming name values Method 1.0.5000.0 2.0.0.0 System.Void This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface. Implements the method by calling the method. Property System.String a Use the property to specify or determine the value associated with the control. The value can be any valid string that you want to associate with the control. This is useful when you have multiple radio buttons and need to perform a calculation based on the selection. For example, you can have radio buttons that represent different shipping methods. You can store the shipping cost in the property. When the user selects the shipping method, the appropriate shipping amount can be determined from this property and added to the sales total. Gets or sets the value associated with the control. 1.0.5000.0 2.0.0.0