Using the DataGrid SB
This tutorial creates the ASP.NET/VB version of the Edit Listing Details page from Chapter 16 of The Joy of Dreamweaver MX. It includes coverage of DataGrids, DataSets, web controls, and setting up an ASP.NET site in Dreamweaver MX.
The Joy of Dreamweaver MX: Recipes for Data-Driven Web Sites is a web developer's cookbook filled with dozens of "secret" recipes that DMXers can really sink their teeth into.
Download the code for the tutorial from the book's companion web site, or read a sample chapter - "Uploads Made Simple" - here on DMXzone.
This tutorial creates the ASP.NET version of the Edit Listing Details page from Chapter
16 of The
Joy of Dreamweaver MX: Recipes for Data-Driven Web Sites. In addition
to explaining how to use Dreamweaver's new DataGrid server behavior for ASP.NET/VB,
this tutorial covers the following topics:
- Setting up an ASP.NET site
- Defining an OLEDB connection
- Using the DataSet server behavior
- Using ASP.NET web controls
- Using the VB IIf function
For more information about the book, visit www.newmanzone.com.
You can also read a sample chapter, "Uploads
Made Simple," on UDzone.com.
Tutorial Requirements
To complete this tutorial, you need to do the following:
- Download and unzip datagrid.zip
- Copy the datagrid folder to the root of your web server (e.g., C:\Inetpub\wwwroot\datagrid)
- Create a virtual directory in IIS called datagrid that
points to the www directory in the sample site (e.g., C:\Inetpub\wwwroot\datagrid\www)
- Install the .NET
Framework
If you plan to experiment with advanced .NET features, such as web services,
download the .NET Framework SDK (131 MB). Otherwise, download and install the
.NET Framework Redistributable (21 MB).
Defining the DataGrid Site
Once you've completed the steps above, you're ready to define the DataGrid
site. Launch Dreamweaver MX and choose Sites | New Site. Select the Advanced
tab and enter DataGrid in the Site Name text box. Click Browse
and enter the following path in the Local Root Folder text box: C:\Inetpub\wwwroot\datagrid\www\.
Make sure Enable Cache is checked.
Select the Testing Server category and choose ASP.NET VB from the Server Model
drop-down menu. Choose Local/Network from the Access drop-down menu. The path
you supplied in the Local Info category is automatically entered in the Testing
Server Folder text box. Finally, enter http://localhost/datagrid/ in
the URL Prefix text box. Click OK to create the new site.
Download
Sample Code
Author of "The Joy of Dreamweaver MX: Recipes for Data-Driven Web Sites," Paul Newman is President of BRAVE NEW WURLD, a New York web design firm. He has a BA in English and Creative Writing from Binghamton University and an MFA in Film Production from the UCLA Department of Film, Television, and Digital Media.
Paul's computer experience dates back to 1985, when he bought one of the first Apple Macintosh computers in his senior year of college. He has been building web sites since 1997, and his clients include RaikaUSA.com, VoiceoverAmerica.com, Officetek.com, and BarbaraTyson.com.
See All Postings From P.R. Newman >>