Murach's ASP.NET Web Programming with VB.NET

This chapter shows you how to retrieve database data using ADO.NET datasets in your web applications. Since cookies are often used to identify what data should be retrieved, this chapter also shows you how to create and use cookies.

Chapter 4 How to use datasets and cookies
How to retrieve data from a database into a dataset 118
Three of the tables in the Halloween database 118
How to use ADO.NET to retrieve data from a database into a dataset 120
Three methods of the HalloweenDB class 122
How to work with a dataset 124
How a dataset is organized 124
How to create and work with untyped datasets 126
How to bind a list control to a data table 128
How to retrieve and work with a data row 130
How to use cookies 132
How to create cookies 134
How to work with cookies 136
How to enable or disable cookies 138
A Halloween Store application 140
The design of the Halloween Store application 140
The Visual Basic code for the Customer class 144
Three more methods of the HalloweenDB class 144
The Visual Basic code for the Order form 146
The Visual Basic code for the Shopping Cart form 150
The Visual Basic code for the Check Out form 152
t




Murach's ASP.NET Web Programming with VB.NET

Learn more about this book

Add this book to your cart