___________________________________________________________________ Companion CD Readme for Building Web Solutions with Microsoft ASP.NET and ADO.NET by Dino Esposito Copyright (c) 1995 - 2002 by Microsoft Corporation Portions copyright (c) 2002 by Dino Esposito All Rights Reserved ___________________________________________________________________ README CONTENTS - WHAT'S ON THIS CD? - HOW TO USE THE CD - SUPPORT INFORMATION - Troubleshooting - Microsoft Press support information - Microsoft .NET Framework, Visual Studio .NET, and SQL Server support WHAT'S ON THIS CD? ================== This companion CD contains the source code for the sample programs presented in C#. Many samples also include a Visual Basic .NET version and can be found in the VB folder of the corresponding chapter. This CD includes: - Autorun menu for linking to the resources on this CD - Sample files for the book - Setup program to install the sample files - Electronic version of the book (eBook) The following samples are included on the CD: Chapter 1 --------- DataGrid Illustrates the basic features of the DataGrid control DataList Illustrates the basic features of the DataList control Repeater Illustrates the basic features of the Repeater control DropDownList Illustrates the basic features of the DropDownList control ListBox Illustrates the basic features of the ListBox control RadioCheck Illustrates the basic features of the CheckBoxList and RadioButtonList controls SimpleDataBind A simple form-based viewer of table records Chapter 2 --------- Binding Shows how to use bound, command, and hyperlink columns with a DataGrid control CustomPager Illustrates various ways to customize the pager bar of a DataGrid control CustomPaging Implements custom pagination with sorting for a DataGrid control ExpandableGrid How to add columns programmatically to a grid Sorting How to realize a multifield, auto-reverse sort in a DataGrid control Chapter 3 --------- Adapting How ASP.NET templates can render special data types ColumnView Dynamically changing the template of a grid column DynamicBinding Dynamically creating templated columns in a DataGrid control Templates Illustrates the basic features of templated columns Header Demonstrates DataGrid control columns with templated headers Chapter 4 --------- DefaultEdit Illustrates the basic features of in-place editing TemplateEdit Illustrates the use of templates for in-place editing AddRows Illustrates how to dynamically add rows to a DataGrid control Chapter 5 --------- CodeBehind Illustrates the basic features of code-behind files FlatTextBox Illustrates a custom textbox control with flat borders LabeledTextBox Illustrates a custom textbox control with a companion label Pagelets Provides a gallery of composite user controls PowerGrid Shows an enhanced version of the DataGrid control with automatic pagination and auto-reverse sorting Chapter 6 --------- Select Illustrates the basic features of row selection using the DataGrid control MultiSelect Shows a multiselection DataGrid control ByCondition Shows an enhanced version of the DataGrid control that supports row selection by condition Summary Illustrates how to insert and display summary rows in a DataGrid control Chapter 7 --------- XmlCreator Provides a tool for creating XML DataSet objects from SQL queries Nulls Demonstrates how to force XML DataSet objects to accept nulls BatchUpdate Illustrates the main features of the ADO.NET batch update, including conflict resolution, and accepting and rejecting changes Chapter 8 --------- ImportingADO Illustrates how to use the ADO library from within .NET code ADOAdapter Illustrates how to import ADO Recordset objects in .NET code ExportRecordset Shows how to export an ADO.NET DataTable object to an ADO Recordset object Chapter 9 --------- NWService Illustrates the basic features of .NET Web services ScriptNWService Shows how to call a Web service from script code Proxy Illustrates how to create and use .NET proxy classes AsyncService Demonstrates how to call a Web service asynchronously Chapter 10 ---------- WebDirList Illustrates the features of a .NET class that returns a directory listing SimpleNetProvider Illustrates a simple read/write .NET data provider that exposes directory contents as a DataSet object HOW TO USE THE CD ================= Autorun CD Menu --------------- To use this companion CD, insert it into your CD-ROM drive. If AutoRun is not enabled on your computer, run StartCD.exe in the root of the CD to display the start menu. The menu provides you with links to all the resources available on the CD, including links for installing the sample files and the eBook, browsing the contents of the CD, and accessing the Microsoft Press product support Web site. Sample files for the book ------------------------- The source code for the programs discussed in the book is included on this CD in the \Code folder. To copy all the sample files to your hard disk, run SETUP.EXE in the \Setup folder and follow the instructions that appear on the screen. The samples require about 3.5 MB of hard disk space. If your computer runs on Microsoft Windows NT 4.0, Microsoft Windows 2000, or Microsoft Windows XP, you will need administrative privileges to install the sample files. To uninstall the sample files, make the appropriate selection from Add/Remove Programs in Control Panel. For more detailed installation and uninstallation instructions, please see the section "How Do I Use the Book’s Companion CD?" at the beginning of the book. Electronic Book (eBook) ----------------------- The complete text of the original print book is contained on this CD in a fully searchable electronic version. To install the eBook, run AUTORUN.EXE in the \eBook folder. Microsoft Internet Explorer 5.01 or later and the proper HTML Help components are required to view the eBook. If your computer does not have Microsoft Internet Explorer 5.01 or later, the setup program will offer to install Internet Explorer 5.5 for you. The setup program has been configured to install the minimum files necessary to view the eBook, and it will not change your current settings or associations. If your computer runs on Microsoft Windows NT 4.0, Microsoft Windows 2000, or Microsoft Windows XP, you will need administrative privileges to install the eBook. For more information about the eBook installation, refer to the Readme.txt file in the \eBook folder. SUPPORT INFORMATION =================== Troubleshooting --------------- Modifying database connection strings All samples use a default database connection string to connect to (localhost), using the "sa" account, with a null password. Some samples provide a text box to modify the connection string. For others, you will need to modify the connection string in the source code for your login information. Batch files Many samples provide batch files to help with configuration. The batch files assume a C: drive installation of Internet Information Service (IIS) and that .NET tools are in your path. Modify the batch files to match your system configuration. Samples do not have permission to access file system Some samples require access to the file system. Note that unlike ASP, ASP.NET does not run applications within the context of the LOCALSYSTEM account. This means that samples that access the file system, for example, will explicitly need to be granted read/write permissions. To enable access: 1) Using Windows Explorer, right-click on the application directory and choose the Security tab. 2) Click Add and select the ASPNET user account. 3) Give the ASPNET user account Write and Modify permissions. 4) Click OK. Microsoft Press support information ----------------------------------- Every effort has been made to ensure the accuracy of the book and the contents of this companion CD. Microsoft Press provides corrections for books through the World Wide Web at: http://www.microsoft.com/mspress/support/ To connect directly to the Microsoft Press Knowledge Base and enter a query regarding a question or issue that you may have, go to: http://www.microsoft.com/mspress/support/search.asp If you have comments, questions, or ideas regarding the book or this CD-ROM, or questions that are not answered by querying the Knowledge Base, please send them to Microsoft Press via e-mail to: mspinput@microsoft.com or via postal mail to: Microsoft Press Attn: Building Web Solutions with Microsoft ASP.NET and ADO.NET Editor One Microsoft Way Redmond, WA 98052-6399 Please note that product support is not offered through the above addresses. Microsoft .NET support -------------------------------- For support information regarding Microsoft .NET Framework, Visual Studio .NET, and SQL Server, you can connect to Microsoft Technical Support on the Web at: http://support.microsoft.com