AlternateText For image button control only. The text to be displayed if the browser cannot display the image. CausesValidation Determines whether page validation occurs when a user clicks the button. The default is true. CommandName A string value that is passed to the command event when a user clicks the button. CommandArgument A string value that is passed to the command event when a user clicks the button. PostBackUrl The URL of the page that is requested when the user clicks the button. Text Boxes and Labels Text box controls are typically used to accept input from the user. A text box control can accept one or more lines of text depending upon the settings of the TextMode attribute. Label controls provide an easy way to display text which can be changed from one execution of a page to the next. If you want to display text that does not change, you use the literal text. Basic syntax of text control: <asp:TextBox ID="txtstate" runat="server" ></asp:TextBox> Common Properties of the Text Box and Labels: Property Description TextMode Specifies the type of text box. SingleLine creates a standard text box, MultiLIne creates a text box that accepts more than one line of text and the Password causes the characters that are entered to be masked. The default is SingleLine. Text The text content of the text box. MaxLength The maximum number of characters that can be entered into the text box. Wrap It determines whether or not text wraps automatically for text box; default is true. ReadOnly Determines whether the user can change the text in the box; default is false, i.e., the user can not change the text. Columns The width of the text box in characters. The actual width is determined based on the font that is used for the text entry.
AlternateText For image button control only. The text to be displayed if the browser cannot display the image. CausesValidation Determines whether page validation occurs when a user clicks the button. The default is true. CommandName A string value that is passed to the command event when a user clicks the button. CommandArgument A string value that is passed to the command event when a user clicks the button. PostBackUrl The URL of the page that is requested when the user clicks the button. Text Boxes and Labels Text box controls are typically used to accept input from the user. A text box control can accept one or more lines of text depending upon the settings of the TextMode attribute. Label controls provide an easy way to display text which can be changed from one execution of a page to the next. If you want to display text that does not change, you use the literal text. Basic syntax of text control: <asp:TextBox ID="txtstate" runat="server" ></asp:TextBox> Common Properties of the Text Box and Labels: Property Description TextMode Specifies the type of text box. SingleLine creates a standard text box, MultiLIne creates a text box that accepts more than one line of text and the Password causes the characters that are entered to be masked. The default is SingleLine. Text The text content of the text box. MaxLength The maximum number of characters that can be entered into the text box. Wrap It determines whether or not text wraps automatically for text box; default is true. ReadOnly Determines whether the user can change the text in the box; default is false, i.e., the user can not change the text. Columns The width of the text box in characters. The actual width is determined based on the font that is used for the text entry.