OK, here is the aspx page markup (part 1):
enter code here
`<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewContract.aspx.cs" Inherits="NewContract" %>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
New Contract </center>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConflictDetection="CompareAllValues"
ConnectionString="<%$ ConnectionStrings:ConnectionString13 %>"
DeleteCommand="DELETE FROM [tblContracts] WHERE [Contract_ID] = ? AND [Vendor_ID] = ? AND [Acct_EmpID] = ? AND [Buyer_ID] = ? AND [Unit_ID] = ? AND [Bank_ContactID] = ? AND [Programmer_ID] = ? AND [Contract_StartDate] = ? AND [Contract_EndDate] = ? AND [Contract_Number] = ? AND [Contract_HourlyRate] = ? AND [Contract_FeeMax] = ? AND [Contract_Description] = ? AND [Contract_Date] = ? AND [Contract_Status] = ?"
InsertCommand="INSERT INTO [tblContracts] ([Contract_ID], [Vendor_ID], [Acct_EmpID], [Buyer_ID], [Unit_ID], [Bank_ContactID], [Programmer_ID], [Contract_StartDate], [Contract_EndDate], [Contract_Number], [Contract_HourlyRate], [Contract_FeeMax],
[ContractDescription], [ContractDate], [ContractStatus]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
OldValuesParameterFormatString="original{0}"
ProviderName="<%$ ConnectionStrings:ConnectionString13.ProviderName %>"
SelectCommand="SELECT * FROM [tblContracts]"
UpdateCommand="UPDATE [tblContracts] SET [VendorID] = ?, [AcctEmpID] = ?, [BuyerID] = ?, [UnitID] = ?, [BankContactID] = ?, [ProgrammerID] = ?, [ContractStartDate] = ?, [ContractEndDate] = ?, [ContractNumber] = ?, [ContractHourlyRate] = ?, [ContractFeeMax] = ?, [ContractDescription] = ?, [ContractDate] = ?, [ContractStatus] = ? WHERE [ContractID] = ? AND [VendorID] = ? AND [AcctEmpID] = ? AND [BuyerID] = ? AND [UnitID] = ? AND [BankContactID] = ? AND [ProgrammerID] = ? AND [ContractStartDate] = ? AND [ContractEndDate] = ? AND [ContractNumber] = ? AND [ContractHourlyRate] = ? AND [ContractFeeMax] = ? AND [ContractDescription] = ? AND [ContractDate] = ? AND [ContractStatus] = ?">
AutoGenerateColumns="False" BackColor="White" BorderColor="#999999"
BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="ContractID"
DataSourceID="SqlDataSource1" GridLines="Vertical"
style="z-index: 1; left: 385px; top: 360px; position: absolute; height: 54px; width: 145px"
onselectedindexchanged="GridView1_SelectedIndexChanged">
<RowStyle BackColor="#EEEEEE" ForeColor="Black" Font-Names="Arial, Verdana" Font-Size="Small"/>
<Columns>
<asp:CommandField ShowSelectButton="True" />
<asp:BoundField DataField="Contract_ID" HeaderText="Contract_ID"
InsertVisible="False" ReadOnly="True" SortExpression="Contract_ID" />
</Columns>
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#777777" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#777777" Font-Bold="True" Font-Names="Arial, Verdana" ForeColor="White" />
<AlternatingRowStyle BackColor="#DCDCDC" />
</asp:GridView>