To Lecture Notes

IT 230 -- 4/20/09

 

Review Questions

  1. What are the differences between HTML controls and ASP.Net Web controls?
    Ans: (1) HMTL control tags are input tags, ASP.Net Web controls start with the prefix asp: and must include the attribute runat=server, (2) HTML commands are posted to a separate .aspx page on the server when the form tag includes action and method attributes, an ASP.Net Web page are, by default, when posted to the server is posted back to itself. An ASP.Net web page is posted to the server when a button is clicked or when a control with its AutoPostBack property is set to true.
     
  2. What does the AutoPostBack property do?
    Ans: See answer to question 1.
     
  3. What is the difference between the RadioButton control and the RadioButtonList Web controls?
    Ans: A RadioButton control, by default, is separate from all the other RadioButton controls. They can be grouped by setting the ButtonGroup property to the same string. A RadioButtonList contains several RadioButton controls. They are automatically grouped together so that only one of them can be checked at a time.
     
  4. How does ASP.Net know which event handler to execute when a button is clicked?
    Ans: The event handler is specified in an On attribute (for example, OnClick). Other controls have other events, such as TextChanged, CheckedChanged, SelectedIndexChanged, or SelectedDateChanged.


     

  5. Create an ASP.Net application that displays all of the selected items in a CheckBoxList control in a Literal control. Use a for loop to iterate through all of the choices.

    Ans: Application   Source Code

 

More ASP.Net Web Controls

 

The String Class

 

Posting Pages to the Server

 

ASP.Net Validation Controls

 

Projects 3 and 4