As I mentioned, I cut and pasted the code from the downloadable code on this website. Apart from correcting the quotes around the "
VB" at the top of the page, it is exactly as downloaded from wrox.com.
Here it is...
<%@ Page Language="
VB" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>SqlDataSource Control Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:GridView ID="GridView1" Runat="server" Datasourceid="SqlDataSource1"
AutoGenerateColumns="False" DataKeyNames="CustomerID"
BackColor="White" GridLines="Vertical"
BorderStyle="Solid" CellPadding="3" ForeColor="Black"
BorderColor="#999999" BorderWidth="1px">
<Columns>
<asp:CommandField ShowEditButton="True">
</asp:CommandField>
<asp:BoundField SortExpression="CustomerID" HeaderText="CustomerID"
ReadOnly="True" DataField="CustomerID">
</asp:BoundField>
<asp:BoundField SortExpression="CompanyName"
HeaderText="Company Name" DataField="CompanyName">
</asp:BoundField>
<asp:BoundField SortExpression="Country" HeaderText="Country"
DataField="Country">
</asp:BoundField>
<asp:BoundField SortExpression="Region" NullDisplayText="NO REGION"
HeaderText="Region" DataField="Region">
</asp:BoundField>
</Columns>
<FooterStyle BackColor="#CCCCCC">
</FooterStyle>
<SelectedRowStyle ForeColor="White" BackColor="#000099"
Font-Bold="True">
</SelectedRowStyle>
<PagerStyle ForeColor="Black" HorizontalAlign="Center"
BackColor="#999999">
</PagerStyle>
<HeaderStyle ForeColor="White" BackColor="Black" Font-Bold="True">
</HeaderStyle>
<AlternatingRowStyle BackColor="#CCCCCC">
</AlternatingRowStyle>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" Runat="server"
SelectCommand="Select * From Customers"
UpdateCommand="UPDATE Customers SET CompanyName = @CompanyName, Country = @Country, Region = @Region WHERE (CustomerID = @CustomerID)"
ConnectionString="Server=(local);Trusted_Connectio n=True;Integrated Security=SSPI;Persist Security Info=True;Database=Northwind"
ProviderName="System.Data.SqlClient">
<UpdateParameters>
<asp:Parameter Name="CustomerID" Type="String">
</asp:Parameter>
<asp:Parameter Name="CompanyName" Type="String">
</asp:parameter>
<asp:parameter Name="Country" Type="String">
</asp:parameter>
<asp:parameter Name="Region" Type="String">
</asp:parameter>
</UpdateParameters>
</asp:SqlDataSource>
</form>
</body>
</html>