
Developing Web Applications • Chapter 10 479
HeaderStyle-ForeColor: White
AlternatingItemStyle-BackColor: Silver
After placing the DataGrid control in the Web form, your design
area should appear as shown in Figure 10.5.
For this design, the user enters a Customer ID and clicks the Get
Order Details button. So, for the Button Click event, we need to write
code to get the orders placed by the customer. In order to reuse the
code, we create a function that will return the dataset containing the
orders placed by the customer for a given Customer ID.
3. Add the following code to your page in WebForm1.vb:
Public Function GetOrders(ByVal CustomerID As String) ...