Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Setting a control's properties defines its appearance and behavior. This topic addresses how to set control properties at design time using Visual Web Developer.
In Design view, select the control, and then set properties in the Properties window.
-or-
In Source view, place the insertion point in the element tag of the control, and then set properties in the Properties window.
Switch to Source view.
In the control's markup element, set the attribute of the control declaration corresponding to the property you want.
Note
In Web server controls, the property names do not necessarily have the same names as HTML attributes; be sure you are using the correct property name.
The following example sets the MaxLength property of an HtmlInputText control:
<input id="SampleTextBox" type=text runat=server maxlength="20" >
The following example sets the TextMode property of a TextBox control:
<asp:textbox text="" runat=Server TextMode="Multiline" />