- Use Server.HtmlEncode( ) or HttpUtility.HTMLEncode( ) methods to avoid XSS vulnerabilites while setting Text property of any control.
- Columns property of a (MultiLine) TextBox determines how many characters would be available per line, and Rows property determines how many lines would be visible to user at any time.
- A Button can be treated as a Submit button or a Command button.
- Set the CommandName property of the Button control to treat it as a Command Button. Such buttons raise a Command event on the server (which carries CommandEventArgs parameter).
- CommandArgument property may be used to provide additional information for the command to perform. This would be available in the CommandEventArgs.
- CausesValidation property of the Button control, if set to false, allows a Button to bypass page validation.
- Setting same GroupName property of the RadioButton control causes multiple radio buttons to be treated as a group.
- CheckBoxList and RadioButtonList are easier to use in case of data binding.
Showing posts with label CheckBox. Show all posts
Showing posts with label CheckBox. Show all posts
Monday, September 14, 2009
Chapter 2-Lesson 2
Labels:
Button,
CheckBox,
RadioButton,
Server Controls,
TextBox,
XSS
Subscribe to:
Posts (Atom)