To Lecture Notes

IT 230 -- 4/22/09

 

Review Questions

  1. What is wrong with this tag if you are placing all of your C# code in the .aspx file?
    <%@ Page Language=C# AutoEventWireup=true 
                           CodeBehind=Default.aspx.cs 
                           Inherits=WebApplication1._Default %>
    
    Ans: This is a tag for use only with code-behind files. Use this tag instead:
    <%@ Page Language=C# %>
    
  2. How do you gray out a control?
    Ans: Set its Enabled property to true.
     
  3. What is an overloaded method?
    Ans: A method that has the same name as another method, but with a different signature, that is different parameter classs that are passed in.
     
  4. Identify the overloaded methods in the DateTime and Random UML diagrams.
    Ans: In DateTime, the three constructors have the signatures ( ), (int, int, int), and (int, int, int, int, int, int).
     
  5. What is a default event?
    Ans: The default event is the event for which the event handler header is produced in Visual Studio when one double clicks on the control.
     
  6. What are the default events for these ASP.Net controls?
     

    Ans: Click, TextChanged, CheckedChanged, SelectedItemChanged, SelectedItemChanged.

  7.  
  8. Create a Visual Studio Project that tests the default event for a TextBox control.
     
    Ans: Application   Source Code

 

Posting Pages to the Server

 

File IO

 

ASP.Net Validation Controls

 

Projects 3 and 4

 

Arrays in C#