Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <asp:FormView ID="frmFields" runat="server" AllowPaging="True" DataKeyNames="FieldID"
- DataSourceID="SqlDataSourceFields" Width="664px" GridLines="Both" PageIndex="1"
- EnableViewState="False">
- <EditItemTemplate>
- <table width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center" colspan="2" style="color: black; height: 12px; background-color: silver">
- <asp:Label ID="Label2" runat="server" Font-Bold="True" Text="Update Field Details"></asp:Label>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- FieldID:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
- <asp:Label ID="FieldIDLabel1" runat="server" Text='<%# Eval("FieldID") %>' CssClass="cagText"></asp:Label>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label17" runat="server" ForeColor="Red" Text="*"></asp:Label>Vendor
- Name:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
- <asp:DropDownList ID="ddlVendorNameEdit" runat="server" CssClass="cagText" DataSourceID="SqlDataSourceAllVendors"
- SelectedValue='<%# Bind("VendorID") %>' DataTextField="VendorName" DataValueField="PayeeID"
- Width="135px">
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="ddlVendorNameEdit"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label18" runat="server" ForeColor="Red" Text="*"></asp:Label>Field
- Name:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
- <asp:TextBox ID="FieldNameTextBoxE" runat="server" Text='<%# Bind("FieldName") %>'
- CssClass="cagText"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="FieldNameTextBoxE"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*"></asp:Label>Field
- No:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtFieldNo" runat="server" Text='<%# Bind("FieldNo") %>' CssClass="cagText"></asp:TextBox>
- <asp:RequiredFieldValidator ID="rfvFieldNo" runat="server" ControlToValidate="txtFieldNo"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label19" runat="server" ForeColor="Red" Text="*"></asp:Label>FieldDescription:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
- <asp:TextBox ID="FieldDescriptionTextBoxE" runat="server" Text='<%# Bind("FieldDescription") %>'
- CssClass="cagText"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="FieldDescriptionTextBoxE"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label20" runat="server" ForeColor="Red" Text="*"></asp:Label>Acres:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:TextBox ID="AcresTextBoxE" runat="server" Text='<%# Bind("Acres") %>' CssClass="cagText"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="AcresTextBoxE"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- <asp:CustomValidator ID="csvAcres" runat="server" ClientValidationFunction="fValAcres"
- ControlToValidate="AcresTextBoxE" ErrorMessage="Value must equal Border Acres + Crossing Acres"></asp:CustomValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label23" runat="server" ForeColor="Red" Text="*"></asp:Label>Country
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
- <asp:DropDownList ID="ddlCountry" runat="server" DataSourceID="SqlDataSourceCountry"
- SelectedValue='<%# Bind("CountryID") %>' DataTextField="CountryName" DataValueField="CountryID"
- OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged" AutoPostBack="True">
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" ControlToValidate="ddlCountry"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label21" runat="server" ForeColor="Red" Text="*"></asp:Label>State
- </td>
- <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
- border-bottom: silver 1px solid; width: 159px;">
- <asp:DropDownList ID="ddlState" runat="server" DataSourceID="SqlDataSourceStates"
- SelectedValue='<%# Bind("StateID") %>' DataTextField="StateName" DataValueField="StateID"
- OnDataBound="ddlState_DataBound">
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="ddlState"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label22" runat="server" ForeColor="Red" Text="*"></asp:Label>County
- Name
- </td>
- <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
- border-bottom: silver 1px solid; width: 159px;">
- <asp:DropDownList ID="ddlCountyNameEdit" runat="server" CssClass="cagText" DataSourceID="SqlDataSourceCounty"
- SelectedValue='<%# Bind("CountyCode") %>' DataTextField="strDescription" DataValueField="strCountyCode"
- Width="135px">
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="ddlCountyNameEdit"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Township
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtTownship" runat="server" CssClass="cagText" Text='<%# Bind("Township") %>'
- Width="135px" />
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Section
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtSection" runat="server" CssClass="cagText" Text='<%# Bind("Section") %>'
- Width="135px" />
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Legal Desc
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtLegalDesc" runat="server" CssClass="cagText" Text='<%# Bind("LegalDesc") %>'
- Width="135px" />
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Longitude
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
- <asp:TextBox ID="txtLongitudeE" runat="server" Text='<%# Bind("Longitude") %>' CssClass="cagText"></asp:TextBox><br />
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Latitude
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
- <asp:TextBox ID="txtLatitudeE" runat="server" Text='<%# Bind("Latitude") %>' CssClass="cagText"></asp:TextBox><br />
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Station Code</td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtStationCode" runat="server" CssClass="cagText" Text='<%# Bind("StationCode") %>'></asp:TextBox></td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Haul Zone Code (LEMOORE, 36)
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" Text='<%# Bind("HaulZoneCodeLEM") %>'></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Haul Zone Code (WILLIAMS, 94)
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtHaulZoneCodeWIL" runat="server" CssClass="cagText" Text='<%# Bind("HaulZoneCodeWIL") %>'></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid; height: 12px">
- Crossing Acre
- </td>
- <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
- width: 159px; border-bottom: silver 1px solid; height: 12px">
- <asp:TextBox ID="txtCrossingAcresEdit" runat="server" CssClass="cagText" Text='<%# Bind("CrossingAcres") %>'></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid; height: 12px">
- Border Acres
- </td>
- <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
- width: 159px; border-bottom: silver 1px solid; height: 12px">
- <asp:TextBox ID="txtBorderAcresEdit" runat="server" CssClass="cagText" Text='<%# Bind("BorderAcres") %>'></asp:TextBox>
- </td>
- </tr>
- </table>
- <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
- Text="Update">
- </asp:LinkButton>
- <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
- Text="Cancel">
- </asp:LinkButton>
- </EditItemTemplate>
- <InsertItemTemplate>
- <table width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center" colspan="2" style="height: 12px; background-color: silver;">
- <asp:Label ID="Label3" runat="server" Font-Bold="True" Text="Insert New Field"></asp:Label>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label6" runat="server" ForeColor="Red" Text="*"></asp:Label>Vendor
- Name:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:DropDownList ID="ddlVendorName" runat="server" CssClass="cagText" DataSourceID="SqlDataSourceAllVendors"
- SelectedValue='<%# Bind("VendorID") %>' DataTextField="VendorName" DataValueField="PayeeID"
- Width="135px" OnDataBound="AddBlankItemToDDL_DataBound">
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ddlVendorName"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label5" runat="server" ForeColor="Red" Text="*"></asp:Label>Field
- Name:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="FieldNameTextBox" runat="server" CssClass="cagText" Text='<%# Bind("FieldName") %>'></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="FieldNameTextBox"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label11" runat="server" ForeColor="Red" Text="*"></asp:Label>Field
- No:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtFieldNo" runat="server" CssClass="cagText" Text='<%# Bind("FieldNo") %>'></asp:TextBox>
- <asp:RequiredFieldValidator ID="rfvFieldNo" runat="server" ControlToValidate="txtFieldNo"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label4" runat="server" ForeColor="Red" Text="*"></asp:Label>FieldDescription:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="FieldDescriptionTextBox" runat="server" CssClass="cagText" Text='<%# Bind("FieldDescription") %>'></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="FieldDescriptionTextBox"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label7" runat="server" ForeColor="Red" Text="*"></asp:Label>Acres:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:TextBox ID="AcresTextBox" runat="server" CssClass="cagText" Text='<%# Bind("Acres") %>'></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="AcresTextBox"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- <asp:CustomValidator ID="csvAcres" runat="server" ClientValidationFunction="fValAcres"
- ControlToValidate="AcresTextBox" ErrorMessage="Value must equal Border Acres + Crossing Acres"></asp:CustomValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label8" runat="server" ForeColor="Red" Text="*"></asp:Label>Country
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:DropDownList ID="ddlCountry" runat="server" DataSourceID="SqlDataSourceCountry"
- SelectedValue='<%# Bind("countryID") %>' DataTextField="CountryName" DataValueField="CountryID"
- AutoPostBack="True" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged">
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="ddlCountry"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label9" runat="server" ForeColor="Red" Text="*"></asp:Label>State
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:DropDownList ID="ddlState" runat="server" DataSourceID="SqlDataSourceStates"
- SelectedValue='<%# Bind("StateID") %>' DataTextField="StateName" DataValueField="StateID">
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="ddlState"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- <asp:Label ID="Label10" runat="server" ForeColor="Red" Text="*"></asp:Label>County
- Name
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:DropDownList ID="ddlCountyName" runat="server" CssClass="cagText" DataSourceID="SqlDataSourceCounty"
- SelectedValue='<%# Bind("CountyCode") %>' DataTextField="strDescription" DataValueField="strCountyCode"
- Width="135px">
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="ddlCountyName"
- ErrorMessage="Required"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Township
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtTownship" runat="server" CssClass="cagText" Text='<%# Bind("Township") %>'
- Width="135px" MaxLength="30" />
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Section
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtSection" runat="server" CssClass="cagText" Text='<%# Bind("Section") %>'
- Width="135px" MaxLength="30" />
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Legal Desc
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtLegalDesc" runat="server" CssClass="cagText" Text='<%# Bind("LegalDesc") %>'
- Width="135px" MaxLength="30" />
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Longitude
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtLongitude" runat="server" CssClass="cagText" Text='<%# Bind("Longitude") %>'></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Latitude
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtLatitude" runat="server" CssClass="cagText" Text='<%# Bind("Latitude") %>'></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Station Code
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtStationCode" runat="server" CssClass="cagText" Text='<%# Bind("StationCode") %>'></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Haul Zone Code (LEM, 36)
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <%-- <asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" Text='<%# Bind("HaulZoneCodeLEM") %>'>--%>
- <asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" Text='<%# ((frmFields) Container.DataItem).HaulZoneCodeLEM != 0 ? ((frmFields) Container.DataItem).HaulZoneCodeLEM : string.Empty %>'>
- </asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Haul Zone Code (WIL, 94)
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtHaulZoneCodeWIL" runat="server" CssClass="cagText" Text='<%# Bind("HaulZoneCodeWIL") %>'></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 119px; border-bottom: silver 1px solid;
- height: 12px">
- Crossing Acre
- </td>
- <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
- width: 339px; border-bottom: silver 1px solid; height: 12px">
- <asp:TextBox ID="txtCrossingAcresEdit" runat="server" CssClass="cagText" Text='<%# Bind("CrossingAcres") %>'></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 119px; border-bottom: silver 1px solid;
- height: 12px">
- Border Acre
- </td>
- <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
- width: 339px; border-bottom: silver 1px solid; height: 12px">
- <asp:TextBox ID="txtBorderAcresEdit" runat="server" CssClass="cagText" Text='<%# Bind("BorderAcres") %>'></asp:TextBox>
- </td>
- </tr>
- </table>
- <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
- Text="Insert" OnClick="InsertButton_Click">
- </asp:LinkButton>
- <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
- Text="Cancel">
- </asp:LinkButton>
- </InsertItemTemplate>
- <ItemTemplate>
- <table width="100%" cellpadding="0" cellspacing="0" style="height: 317px">
- <tr>
- <td align="left" style="height: 12px; width: 101px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- FieldID:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
- <asp:Label ID="FieldIDLabel1" runat="server" Text='<%# Eval("FieldID") %>' CssClass="cagText"></asp:Label>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 101px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Vendor Name:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
- <asp:DropDownList ID="ddlVendorName" runat="server" CssClass="cagText" DataSourceID="SqlDataSourceAllVendors"
- Enabled="false" SelectedValue='<%# Bind("VendorID") %>' DataTextField="VendorName"
- DataValueField="PayeeID" Width="135px">
- </asp:DropDownList>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 101px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Field Name:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="FieldNameTextBox" ReadOnly="true" runat="server" Text='<%# Bind("FieldName") %>'
- CssClass="cagText"></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 100px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Field No:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 100px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtFieldNo" ReadOnly="true" runat="server" Text='<%# Bind("FieldNo") %>'
- CssClass="cagText"></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 101px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- FieldDescription:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="FieldDescriptionTextBox" ReadOnly="true" runat="server" Text='<%# Bind("FieldDescription") %>'
- CssClass="cagText"></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 101px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Acres:
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="AcresTextBox" ReadOnly="true" runat="server" Text='<%# Bind("Acres") %>'
- CssClass="cagText"></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 101px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- County Name
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
- <asp:DropDownList ID="ddlCountyName" runat="server" CssClass="cagText" DataSourceID="SqlDataSourceCounty"
- Enabled="false" SelectedValue='<%# Bind("CountyCode") %>' DataTextField="strDescription"
- DataValueField="strCountyCode" Width="135px">
- </asp:DropDownList>
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Township
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtTownship" runat="server" CssClass="cagText" Text='<%# Bind("Township") %>'
- Width="135px" ReadOnly="True" MaxLength="30" />
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Section
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtSection" runat="server" CssClass="cagText" Text='<%# Bind("Section") %>'
- Width="135px" ReadOnly="True" MaxLength="30" />
- </td>
- </tr>
- <tr>
- <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Legal Desc
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtLegalDesc" runat="server" CssClass="cagText" Text='<%# Bind("LegalDesc") %>'
- Width="135px" ReadOnly="True" MaxLength="30" />
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 101px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- State
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
- <asp:DropDownList ID="ddlState" runat="server" DataSourceID="SqlDataSourceStates"
- SelectedValue='<%# Bind("StateID") %>' DataTextField="StateName" DataValueField="StateID"
- Enabled="False">
- </asp:DropDownList>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 101px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Country
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
- <asp:DropDownList ID="ddlCountry" runat="server" DataSourceID="SqlDataSourceCountry"
- SelectedValue='<%# Bind("countryID") %>' DataTextField="CountryName" DataValueField="CountryID"
- Enabled="False">
- </asp:DropDownList>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 101px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Longitude
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtLongitude" runat="server" Text='<%# Bind("Longitude") %>' CssClass="cagText"
- ReadOnly="True"></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 101px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Latitude
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtLatitude" runat="server" Text='<%# Bind("Latitude") %>' CssClass="cagText"
- ReadOnly="True"></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 100px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Station Code
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 100px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtStationCode" runat="server" CssClass="cagText" ReadOnly="True"
- Text='<%# Bind("StationCode") %>'></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 100px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Haul Zone Code (LEM, 36)
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 100px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" ReadOnly="True"
- Text='<%# Bind("HaulZoneCodeLEM") %>'></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="width: 100px; height: 12px; border-right: silver 1px solid;
- border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
- Haul Zone Code (WIL, 94)
- </td>
- <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 100px; border-bottom: silver 1px solid;">
- <asp:TextBox ID="txtHaulZoneCodeWIL" runat="server" CssClass="cagText" ReadOnly="True"
- Text='<%# Bind("HaulZoneCodeWIL") %>'></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 101px; border-bottom: silver 1px solid;
- height: 12px">
- Crossing Acre
- </td>
- <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
- width: 46px; border-bottom: silver 1px solid; height: 12px">
- <asp:TextBox ID="txtCrossingAcres" runat="server" CssClass="cagText" ReadOnly="True"
- Text='<%# Bind("CrossingAcres") %>'></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
- border-left: silver 1px solid; width: 101px; border-bottom: silver 1px solid;
- height: 12px">
- Border Acres
- </td>
- <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
- width: 46px; border-bottom: silver 1px solid; height: 12px">
- <asp:TextBox ID="txtBorderAcres" runat="server" CssClass="cagText" ReadOnly="True"
- Text='<%# Bind("BorderAcres") %>'></asp:TextBox>
- </td>
- </tr>
- </table>
- <table align="center" bgcolor="#cccccc" border="0" cellpadding="5" cellspacing="1"
- width="600">
- <tbody>
- <tr>
- <td style="height: 75px" class="header1" align="right" width="100" bgcolor="#eeeeee">
- File to upload:
- </td>
- <td style="height: 75px" bgcolor="#ffffff">
- <asp:FileUpload ID="fileUpEx" runat="server"></asp:FileUpload> <br />
- <asp:Button ID="btnSubmit" OnClick="btnSubmit_Click" runat="server" Text="Submit">
- </asp:Button>
- <br />
- <asp:Label ID="lblStatus" runat="server"></asp:Label>
- <asp:LinkButton ID="lnkBtnViewImg" runat="server" OnClick="lnkBtnViewImg_Click">View Image</asp:LinkButton>
- </td>
- </tr>
- </tbody>
- </table>
- <br />
- <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit"
- Text="Edit" OnClick="EditButton_Click"></asp:LinkButton>
- <asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" OnClick="Deletebutton_Click"
- Text="Delete"></asp:LinkButton>
- <asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New"
- Text="New"></asp:LinkButton>
- <br />
- </ItemTemplate>
- <PagerSettings Mode="NextPreviousFirstLast" />
- <EmptyDataTemplate>
- <asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New"
- Text="New"></asp:LinkButton>
- </EmptyDataTemplate>
- </asp:FormView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement