Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. <asp:GridView ID="grdvObjectTypeMaint" runat="server"
  2. AutoGenerateColumns="False" CellPadding="4" DataSourceID="dsObjTypeMaint"
  3. Width="407px" BackColor="White" BorderColor="#3366CC" BorderStyle="None"
  4. BorderWidth="1px" DataKeyNames="OBJT_SEQNO" ShowFooter="True">
  5. <Columns>
  6. <asp:CommandField ButtonType="Button" ShowEditButton="True" />
  7. <asp:TemplateField HeaderText="ID" InsertVisible="False"
  8. SortExpression="OBJT_SEQNO">
  9. <EditItemTemplate>
  10. <asp:Label ID="Label1" runat="server" Text='<%# Eval("OBJT_SEQNO") %>'></asp:Label>
  11. </EditItemTemplate>
  12. <ItemTemplate>
  13. <asp:Label ID="Label1" runat="server" Text='<%# Bind("OBJT_SEQNO") %>'></asp:Label>
  14. </ItemTemplate>
  15. <FooterTemplate>
  16. <asp:Button ID="btnObjTypeAdd" runat="server" Text="Add" OnClick="lbInsert_Click" />
  17. </FooterTemplate>
  18. </asp:TemplateField>
  19. <asp:TemplateField HeaderText="Description" SortExpression="OBJT_DESC">
  20. <EditItemTemplate>
  21. <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("OBJT_DESC") %>'></asp:TextBox>
  22. <asp:RequiredFieldValidator ID="rfvObjDesc" runat="server" ErrorMessage="Description is required before the value can be updated" Text="*" ForeColor="Red" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
  23. </EditItemTemplate>
  24. <ItemTemplate>
  25. <asp:Label ID="Label2" runat="server" Text='<%# Bind("OBJT_DESC") %>'></asp:Label>
  26. </ItemTemplate>
  27. <FooterTemplate>
  28. <asp:TextBox ID="txtDescAdd" runat="server"></asp:TextBox>
  29. <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>
  30. </FooterTemplate>
  31. </asp:TemplateField>
  32. </Columns>
  33. <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
  34. <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
  35. <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
  36. <RowStyle BackColor="White" ForeColor="#003399" />
  37. <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
  38. <SortedAscendingCellStyle BackColor="#EDF6F6" />
  39. <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
  40. <SortedDescendingCellStyle BackColor="#D6DFDF" />
  41. <SortedDescendingHeaderStyle BackColor="#002876" />
  42. </asp:GridView>
  43. <asp:ValidationSummary ForeColor="Red" ID="ValidationSummary1" runat="server" />
  44. <asp:ValidationSummary ID="ValidationSummary2" ValidationGroup="InsertGrp" ForeColor="Red" runat="server" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement