Guest User

Untitled

a guest
Mar 15th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 2.98 KB | None | 0 0
  1. //code goes inside body tags
  2.  
  3. <form id="form1" runat="server">
  4.     <div>
  5.         <%--<asp:GridView ID="TestGridView" runat="server" AutoGenerateColumns="False"
  6.             BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px"
  7.             CellPadding="4" DataKeyNames="Stock_id" DataSourceID="StockDS"
  8.             ForeColor="Black" GridLines="Vertical">
  9.             <AlternatingRowStyle BackColor="White" />
  10.             <Columns>
  11.                 <asp:BoundField DataField="Stock_id" HeaderText="Stock_id"
  12.                     InsertVisible="False" ReadOnly="True" SortExpression="Stock_id" />
  13.                 <asp:BoundField DataField="Stock_Description" HeaderText="Stock_Description"
  14.                     SortExpression="Stock_Description" />
  15.                 <asp:BoundField DataField="Stock_Categorie" HeaderText="Stock_Categorie"
  16.                     SortExpression="Stock_Categorie" />
  17.             </Columns>
  18.             <FooterStyle BackColor="#CCCC99" />
  19.             <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
  20.             <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
  21.             <RowStyle BackColor="#F7F7DE" />
  22.             <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
  23.             <SortedAscendingCellStyle BackColor="#FBFBF2" />
  24.             <SortedAscendingHeaderStyle BackColor="#848384" />
  25.             <SortedDescendingCellStyle BackColor="#EAEAD3" />
  26.             <SortedDescendingHeaderStyle BackColor="#575357" />
  27.         </asp:GridView>--%>
  28.         <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None">
  29.             <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
  30.             <EditRowStyle BackColor="#999999" />
  31.             <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
  32.             <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
  33.             <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
  34.             <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
  35.             <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
  36.             <SortedAscendingCellStyle BackColor="#E9E7E2" />
  37.             <SortedAscendingHeaderStyle BackColor="#506C8C" />
  38.             <SortedDescendingCellStyle BackColor="#FFFDF8" />
  39.             <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
  40.         </asp:GridView>
  41.         <asp:Label ID="Label1" runat="server" Font-Size="XX-Large" ForeColor="Red"
  42.             Visible="False"></asp:Label>
  43.         <br />
  44.         <asp:GridView ID="GridView2" runat="server">
  45.         </asp:GridView>
  46.  
  47.         <br />
  48.         <asp:Button ID="btnAwesome" runat="server" Text="I'm awesome button" />
  49.         <asp:SqlDataSource ID="StockDS" runat="server" ConnectionString="<%$ ConnectionStrings:StockConn %>"
  50.             SelectCommand="SELECT * FROM [Stock]"></asp:SqlDataSource>
  51.     </div>
  52.     </form>
Add Comment
Please, Sign In to add comment