<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="quick_enquery.aspx.cs" Inherits="admin_quick_enquery"   EnableEventValidation="false" ValidateRequest="false" EnableViewStateMac="false" ViewStateEncryptionMode="Never" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12 col-sm-12 col-12">
                <h3 class="pt-2 pb-2 text-center m-0">Contact</h3>
            </div>
            <div class="col-md-12 col-sm-12 col-12">
                <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>--%>
                        <div class="col-md-12 col-sm-12 col-12 ">
                            <div class="top_panel">
                                <div class="row">
                                    <div class="col-5">
                                        <asp:Label ID="lblMsg" runat="server" CssClass="message"></asp:Label>
                                    </div>
                                    <div class="col-7">
                                        <div class="col-md-12 col-sm-12 col-12">
                                            <div class="row">
                                                <div class="col-2">
                                                    <p class="welcome_txt">From Date</p>
                                                </div>
                                                <div class="col-3">
                                                    <asp:TextBox ID="txtFromDate" runat="server" CssClass="form-control" AutoCompleteType="Disabled" Width="180px" ></asp:TextBox>
                                                    <ajaxToolkit:CalendarExtender ID="calextDate" runat="server" TargetControlID="txtFromDate" Format="dd-MMM-yyyy" PopupButtonID="txtFromDate" />
                                                </div>
                                                <div class="col-2">
                                                     <p class="welcome_txt">To Date</p>
                                                </div>
                                                <div class="col-3">
                                                    <asp:TextBox ID="txtToDate" runat="server" CssClass="form-control" AutoCompleteType="Disabled" Width="180px"></asp:TextBox>
                                                     <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtToDate" Format="dd-MMM-yyyy" PopupButtonID="txtToDate" />
                                                </div>
                                                <div class="col-2">
                                                    <asp:Button ID="btnShow" runat="server" CssClass="view_btn" OnClick="btnShow_Click" />
                                                    <asp:Button ID="btnExcel" runat="server" CssClass="download_btn" OnClick="btnExcel_Click" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 col-sm-12 col-12">
                            <div id="Panel_Grid" runat="server" class="table-responsive">
                                <asp:GridView ID="gv" runat="server" AutoGenerateColumns="false" CssClass="custom_table" Width="100%" BorderColor="#999999" CellPadding="5" AllowPaging="True" PageSize="10" OnPageIndexChanging="gv_PageIndexChanging">
                                    <Columns>
                                        <asp:TemplateField HeaderText="Date">
                                            <ItemTemplate>
                                                <%# Eval("action_on","{0:dd-MMM-yyyy}") %>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Left" />
                                            <ItemStyle HorizontalAlign="Left" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Name">
                                            <ItemTemplate>
                                                <%# Eval("name") %>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Left" />
                                            <ItemStyle HorizontalAlign="Left"  />
                                        </asp:TemplateField>
                                        
                                         <asp:TemplateField HeaderText="Email">
                                            <ItemTemplate>
                                                <%# Eval("email") %>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Left" />
                                            <ItemStyle HorizontalAlign="Left"  />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Message">
                                            <ItemTemplate>
                                                <%# Eval("message") %>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Left" />
                                            <ItemStyle HorizontalAlign="Left"  Width="500px" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <HeaderStyle CssClass="table_hdr" />
                                    <PagerStyle CssClass="table_hdr" VerticalAlign="Bottom" HorizontalAlign="Center" />
                                </asp:GridView>
                            </div>
                        </div>
                    <%--</ContentTemplate>
                </asp:UpdatePanel>--%>
            </div>
        </div>
    </div>
    <style>
        .ajax__calendar .ajax__calendar_container {
            z-index:10;
        }
    </style>
</asp:Content>

