id="grdProducts"
DataSourceID="srcProducts"
DataKeyNames="Id"
AutoGenerateSelectButton="true"
Runat="server" />
id="dtlProducts"
DefaultMode="Edit"
AutoGenerateEditButton="true"
AllowPaging="true"
DataSourceID="srcProductDetails"
DataKeyNames="Id"
Runat="server" OnItemUpdated="dtlProducts_ItemUpdated" />
id="srcProducts"
ConnectionString="<%$ ConnectionStrings:Products %>"
SelectCommand="SELECT Id,Title FROM Products"
Runat="server" />
id="srcProductDetails"
ConnectionString="<%$ ConnectionStrings:Products %>"
SelectCommand="SELECT Id,Title,Director,InStocks FROM Products WHERE Id=@ProductId"
UpdateCommand="UPDATE Products SET Title=@Title,Director=@Director, InStocks=@InStocks WHERE Id=@Id"
Runat="server">