Sams Teach Yourself .Net in 21 Days
- Table of Contents
- Copyright
- About the Author
- About the Technical Editor
- Acknowledgments
- We Want to Hear from You
- Introduction
- Week 1: At a Glance
- Day 1. Introduction to the Microsoft .NET Framework
- Day 2. Introduction to Visual Studio .NET
- Day 3. Writing Windows Forms Applications
- Day 4. Deploying Windows Forms Applications
- Day 5. Writing ASP.NET Applications
- Day 6. Deploying ASP.NET Applications
- Day 7. Exceptions, Debugging, and Tracing
- Week 1. In Review
- Week 2: At a Glance
- Day 8. Core Language Concepts in Visual Basic .NET and C#
- Day 9. Using Namespaces in .NET
- Day 10. Accessing Data with ADO.NET
- Day 11. Understanding Visual Database Tools
- Day 12. Accessing XML in .NET
- Day 13. XML Web Services in .NET
- Day 14. Components and .NET
- Week 2. In Review
- Week 3: At a Glance
- Day 15. Writing International Applications
- Day 16. Using Macros in Visual Studio .NET
- Day 17. Automating Visual Studio .NET
- Day 18. Using Crystal Reports
- Day 19. Understanding Microsoft Application Center Test
- Day 20. Using Visual SourceSafe
- Day 21. Object Role Modeling with Visio
- Week 3. In Review
Exercises
- Open the solution file for the XML app that you just completed and do the following:
-
Go to the code for the Using XML Document button. If you do not have Dynamic Help on, click Help from the main menu and select Dynamic Help. Read the SDK file on the XmlDocument class to familiarize yourself with its capabilities.
-
Set a breakpoint on the Load method of the xDoc variable in the XPathSelectNodes click event. Step through the code and examine how the SelectNodes and SelectSingleNode methods behave compared to the XmlTextReader methods when retrieving node values.
-
Run the code for the DOMXmlAttribute click event. Using the Dynamic Help, familiarize yourself with the XmlAttribute, XmlNode, and XmlNodeList objects in the SDK.
-
Read about the differences of using the XmlReader classes versus the XmlDocument classes when working with XML files.
-
-
Create a new ASP.NET Web Application. Using the databinding techniques you learned about over the last few days, do the following:
-
Add a ComboBox and DataGrid to the default WebForm1.aspx page.
-
Load the Customers.xml file into a DataSet, and then bind the DataSet to a DataGrid.
-
Load the ComboBox with the CustomerID field using an XmlReader, and add the CustomerID to the Items collection of the ComboBox.
This will help you become familiar with using ASP.NET and loading XML files on Web pages.
-
Day 13. XML Web Services in .NET | Next Section

Account Sign In
View your cart