Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

Chapter 20 Creating Web Sites and Web Pages by Using Visual Web Developer and ASP .NET 513


a few other differences, which you can explore by using the Properties window and Visual
Studio Help documentation .) Note that I’m using the same Access database table I used
in Chapters 18 and 19, so you can see how similar database programming is in Visual Web
Developer. Many programmers also use SQL databases on their Web sites, and Visual Web
Developer also handles that format very well.

Add a GridView control


  1. With the new Web page open and the insertion point in the desired location,
    double-click the GridView control on the Data tab of the Visual Web Developer
    Toolbox.
    Visual Web Developer adds a grid view object named GridView1 to the Web page. The
    grid view object currently contains placeholder information.

  2. If the GridView Tasks list is not already displayed, click the GridView1 object’s smart tag
    to display the list.

  3. Click the Choose Data Source arrow, and then click the option.

  4. Visual Web Developer displays the Data Source Configuration Wizard, a tool that you
    used in Chapters 18 and 19 to establish a connection to a database and select the
    tables and fields that will make up a dataset.
    Your screen looks like this:

Free download pdf