To Lecture Notes

IT 230 -- 4/8/09

 

Review Questions

  1. What is wrong with these links on your index page?
    <P><A href=http://ectweb2.cs.depaul.edu/ssmith/proj1/proj1.htm
          target=new>Project 1</A></P>
    
    <LINK href=http://ectweb2.cs.depaul.edu/ssmith/styles.css>
    
    Ans: Tag names should not be upper case, attribute values should be in double quotes, the hyperlink addresses should be relative, not absolute, the link tag should be a combination start/end tag that ends with />, don't use target=new for pages within your own website.
     
  2. What is the file extension for an ASP.Net file?
    Ans: .aspx.
     
  3. What is the first tag in an ASP.Net Webpage file?
    Ans: The page tag
    <%@ Page Language=C# %>
    
  4. Write the XHTML tag for an ASP.Net TextBox control with name txtInput and text Enter cost. Ans:
    <asp:TextBox runat=server ID=txtInput Text=Enter cost />
    
  5. Write the XHTML tag for an ASP.Net Button control with name btnSubmit and text Submit Value. Also insure that the width and height of the button are 100 pixels by 50 pixels. Ans:
    <asp:Button runat=server ID=btnSubmit Text=Submit Value
             Width=100px Height=50px />
    
  6. What are the delimiters for C#.Net code embedded in an HTML file?
    Ans: <%= and %>
     
  7. What is a code-behind file?
    Ans: A file used in Visual Studio that only contains C# code. These files end with the extension .aspx.cs or .aspx.designer.cs.
     
  8. List four important windows used when working with a Visual Studio ASP.Net project.
    Ans: (1) Toolbox, (2) Properties Window, (3) Solution Explorer, (4) Page window that can be view in Design (WYSIWYG) or Code View.
     
  9. What is an event handler? How do you create one in Visual Studio?
    Ans: An event handler is a C# method that gets executed when its corresponding event fires (for example a Click event).
     
  10. List the steps for converting a Visual Studio ASP.Net project with code-behind files to a file suitable for uploading to ASP.Net.
    Ans: Here are the steps.

 

Classes and Objects

 

Practice Problem

 

The C# Language

 

Web.config Files

 

Examples

 

Project Proj2