< %@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" % > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="< %$ ConnectionStrings:ConnectionString % >" ProviderName="< %$ ConnectionStrings:ConnectionString.ProviderName % >" SelectCommand="SELECT cust_id, company, contact, title FROM customer" UpdateCommand= "UPDATE customer SET company = ?, contact = ?, title = ? WHERE (cust_id = ?)"> </asp:SqlDataSource> </div> <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="cust_id" DataSourceID="SqlDataSource1"> <Columns> <asp:CommandField ShowEditButton="True" /> <asp:BoundField DataField="cust_id" HeaderText="cust_id" ReadOnly="True" SortExpression="cust_id" /> <asp:BoundField DataField="company" HeaderText="company" SortExpression="company" /> <asp:BoundField DataField="contact" HeaderText="contact" SortExpression="contact" /> <asp:BoundField DataField="title" HeaderText="title" SortExpression="title" /> </Columns> </asp:GridView> </form> </body> </html>Cetin