<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width:100%;">
        <tr>
            <td>
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
            </td>
            <td align="center">
                <%--<asp:ModalPopupExtender ID="LinkButton1_ModalPopupExtender" runat="server" 
                    DynamicServicePath="" Enabled="True" TargetControlID="imgAddNew" 
                    PopupControlID="Panel1" BackgroundCssClass="modalBackground" >
                    
                </asp:ModalPopupExtender>--%>
                                </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3" align="center">
                <asp:GridView ID="gvCategory" runat="server" CellPadding="4" 
                    ForeColor="#333333" GridLines="None" AllowPaging="true" PageSize="15" 
                    
                    AutoGenerateColumns="false" 
                    >
                    <Columns>
                        <asp:TemplateField HeaderText="ID">                            
                            <ItemTemplate>
                                <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>' Width="200"></asp:Label>    
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <%--    <asp:Label ID="lblEdit" runat="server" Text="Name"></asp:Label>  --%>  
                                <asp:TextBox ID="txtCategoryNameHeader" runat="server" BorderStyle="None" AutoPostBack="true" BackColor="Transparent" OnTextChanged="txtCategoryNameHeader_TextChanged" ></asp:TextBox>
                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtCategoryNameHeader" WatermarkText="Category">
                                </asp:TextBoxWatermarkExtender>
                            </HeaderTemplate>                            
                            <HeaderStyle Width="50px" BackColor="#d6bc8b" Font-Bold="true" />
                            <ItemTemplate>
                                <asp:Label ID="lblName" runat="server" Text='<%# Eval("Name") %>' Width="200"></asp:Label>    
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="txtName" runat="server" Text='<%# Eval("Name") %>'></asp:TextBox>
                            </EditItemTemplate>
                        
                        </asp:TemplateField>                                                
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

