CS 3340 – Test 3 Review

CS 3340 – Test 3 Review
The test covers these major topics: Ajax, Database, Web Services, and User Controls.
Review Topics
Ajax
1. What does the acronym Ajax stand for? What is Ajax?
2. What two components are used to implement Ajax in ASP.NET?
Database
3. Write SQL statements (Select, Select with Inner Join, Insert, Update, Delete) given a database
relationship diagram and a description of what is desired.
4. Write C# code to execute a Select statement or an action query. You can assume you are given a
connection string but all the rest should be done manually (i.e. no ConnectionFactory nor wizards).
5. Write code to “process” the data in a DataReader. Example: You have a DataReader with product
name and cost in each row, add up all the costs and return the total.
Web Services
6. Describe what a web service is and why they are useful.
7. Describe the process of creating and testing a web service in Visual Studio
User Controls
8. Describe what a user control is and why they are useful.
9. Example of a problem on the final exam about user controls is shown on the next page:
1
Consider the web page shown on the left below which uses a User Control. The User Control design
is shown on the right. The code behind for each is shown on the final exam (not provided here!). The
are 10 places in the code where a property, method, event, or parameter value is missing. You will
fill-in these 10 blanks.
Description:
1. In “Testing Input”, the user types a Description and presses Set button. The value supplied
appears in the UC in the label that says desc.
2. In “User Control”, the user types a value abd presses Submit.
3. The UC stores the input value and fires an event.
4. The web page handles the event by putting the input value in the “Testing Output” are in the
textbox shown, txtInVal.
2