Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <asp:GridView ID="grdvObjectTypeMaint" runat="server"
- AutoGenerateColumns="False" CellPadding="4" DataSourceID="dsObjTypeMaint"
- Width="407px" BackColor="White" BorderColor="#3366CC" BorderStyle="None"
- BorderWidth="1px" DataKeyNames="OBJT_SEQNO" ShowFooter="True">
- <Columns>
- <asp:CommandField ButtonType="Button" ShowEditButton="True" />
- <asp:TemplateField HeaderText="ID" InsertVisible="False"
- SortExpression="OBJT_SEQNO">
- <EditItemTemplate>
- <asp:Label ID="Label1" runat="server" Text='<%# Eval("OBJT_SEQNO") %>'></asp:Label>
- </EditItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label1" runat="server" Text='<%# Bind("OBJT_SEQNO") %>'></asp:Label>
- </ItemTemplate>
- <FooterTemplate>
- <asp:Button ID="btnObjTypeAdd" runat="server" Text="Add" OnClick="lbInsert_Click" />
- </FooterTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="Description" SortExpression="OBJT_DESC">
- <EditItemTemplate>
- <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("OBJT_DESC") %>'></asp:TextBox>
- <asp:RequiredFieldValidator ID="rfvObjDesc" runat="server" ErrorMessage="Description is required before the value can be updated" Text="*" ForeColor="Red" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
- </EditItemTemplate>
- <ItemTemplate>
- <asp:Label ID="Label2" runat="server" Text='<%# Bind("OBJT_DESC") %>'></asp:Label>
- </ItemTemplate>
- <FooterTemplate>
- <asp:TextBox ID="txtDescAdd" runat="server"></asp:TextBox>
- <asp:RequiredFieldValidator ID="rfvObjDescInsert" ValidationGroup="InsertGrp" runat="server" ErrorMessage="Description is required before the record can be inserted" Text="*" ForeColor="Red" ControlToValidate="txtDescAdd"></asp:RequiredFieldValidator>
- </FooterTemplate>
- </asp:TemplateField>
- </Columns>
- <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
- <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
- <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
- <RowStyle BackColor="White" ForeColor="#003399" />
- <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
- <SortedAscendingCellStyle BackColor="#EDF6F6" />
- <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
- <SortedDescendingCellStyle BackColor="#D6DFDF" />
- <SortedDescendingHeaderStyle BackColor="#002876" />
- </asp:GridView>
- <asp:ValidationSummary ForeColor="Red" ID="ValidationSummary1" runat="server" />
- <asp:ValidationSummary ID="ValidationSummary2" ValidationGroup="InsertGrp" ForeColor="Red" runat="server" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement