<%@ control language="VB" autoeventwireup="false" inherits="PCC_Exchange_CC_MailFlowLogs, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<script>
    $(document).ready(function () {
        if ($("#" + '<%= DDL_Period.ClientID %>').val() == 'Custom') {
            $("#Div_CustomDate").removeClass("hide");
        }
        else {
            $("#Div_CustomDate").addClass("hide");
        }

        $("#" + '<%= DDL_Period.ClientID %>').on("change", function () {
            if ($(this).val() == 'Custom') {
                $("#Div_CustomDate").removeClass("hide");
            }
            else {
                $("#Div_CustomDate").addClass("hide");
            }
        });
    });

    function ShowFullText(event) {
        //console.log($("span[data-num='FullText" + $(event).attr("data-num") + "']").attr("id"));
        $("span[data-num='FullText" + $(event).attr("data-num") + "']").removeClass("hide");
        $("span[data-num='PartialText" + $(event).attr("data-num") + "']").addClass("hide");
        $(event).addClass("hide")
        $("button[data-num2='Less" + $(event).attr("data-num") + "']").removeClass("hide");
    }
    function ShowPartialText(event) {
        $("span[data-num='FullText" + $(event).attr("data-num") + "']").addClass("hide");
        $("span[data-num='PartialText" + $(event).attr("data-num") + "']").removeClass("hide");
        $(event).addClass("hide")
        $("input[data-num2='More" + $(event).attr("data-num") + "']").removeClass("hide");
    }
</script>

<script type="text/javascript">

    function OrgMailFlow(dataParam) {

        Morris.Line({
            element: 'graph1',
            data: $.parseJSON(dataParam),
            xkey: 'x',
            ykeys: ['a', 'b'],
            labels: ['Sent', 'Received'],
            fillOpacity: 0.6,
            hideHover: 'auto',
            behaveLikeLine: true,
            resize: true,
            pointFillColors: ['#ffffff'],
            pointStrokeColors: ['black'],
            lineColors: ['#2476ba', '#bbd34e']

        });

        //Morris.Area({
        //    element: 'graph1',
        //    data: [
        //        { y: '2006', a: 100, b: 90 },
        //        { y: '2007', a: 75, b: 65 },
        //        { y: '2008', a: 50, b: 40 },
        //        { y: '2009', a: 75, b: 65 },
        //        { y: '2010', a: 50, b: 40 },
        //        { y: '2011', a: 75, b: 65 },
        //        { y: '2012', a: 100, b: 90 }
        //    ],
        //    xkey: 'y',
        //    ykeys: ['a', 'b'],
        //    labels: ['Series A', 'Series B'],
        //    resize: true
        //});

        var parentDivWidth = $("#graph1").parent("div").width();
        $("#graph1").css("width", parentDivWidth);
        $("#graph1 > svg:nth-child(1)").css("width", parentDivWidth);
    }

</script>
<asp:Panel ID="Pnl_Listing_MailFlowLogs" runat="server" DefaultButton="Btn_ApplyFilter_MailFlowLogsSummary">

    <asp:Panel ID="Pnl_Btn_ApplyFilter" runat="server" CssClass="row" DefaultButton="Btn_ApplyFilter_MailFlowLogsSummary">
        <div class="panel-group search-panel" id="AS_MailFlowLogs" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_MailFlowLogs">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_MailFlowLogs" href="#<%= CSB_MailFlowLogs.ClientID%>" aria-expanded="true" aria-controls="SH_MailFlowLogs">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>
                    <div id="CSB_MailFlowLogs" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_MailFlowLogs" aria-expanded="false">
                        <div class="row">
                            <div class="col-md-4 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:DropDownList ID="DDL_Orgs" runat="server">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="RFV_DDL_Orgs" runat="server" ControlToValidate="DDL_Orgs" ValidationGroup="SearchMailFlowSummary" ErrorMessage="<%$ Resources:Content,strPleaseSelectOrganization %>" SetFocusOnError="true" Display="None"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:DropDownList ID="DDL_Period" runat="server">
                                        <asp:ListItem Text="<%$ Resources:Content,Last30Days %>" Value="30"></asp:ListItem>
                                        <asp:ListItem Text="<%$ Resources:Content,Last15Days %>" Value="15"></asp:ListItem>
                                        <asp:ListItem Text="<%$ Resources:Content,Last7Days %>" Value="7"></asp:ListItem>
                                        <asp:ListItem Text="<%$ Resources:Content,String456 %>" Value="Custom"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:ValidationSummary ID="VS_MFS" runat="server" ShowMessageBox="true" ValidationGroup="SearchMailFlowSummary" ShowSummary="false" />
                                    <asp:Button ID="Btn_ApplyFilter_MailFlowLogsSummary" ValidationGroup="SearchMailFlowSummary" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" CausesValidation="true" />
                                    <asp:Button ID="Btn_ClearFilter_Summary" Visible="false" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                </div>
                            </div>
                        </div>

                        <div id="Div_CustomDate" class="row hide">
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <label>
                                    <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN0000685%>" EnableViewState="false" />:
                                </label>
                                <div class="form-group display-date-input">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_FromDate" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <i runat="server" id="A_FromDate" class="material-icons icon-calendar col-calendar"></i>
                                <EM:CalendarExtender ID="CE_FromDate" runat="server" TargetControlID="TxBx_FromDate"
                                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                    PopupButtonID="A_FromDate" CssClass="date__calendar">
                                </EM:CalendarExtender>
                            </div>
                            <div class="col-md-1 col-sm-6 col-xs-12">
                                <asp:DropDownList ID="ddl_FromTime" runat="server">
                                    <asp:ListItem Text="12" Value="12:00:00"></asp:ListItem>
                                    <asp:ListItem Text="1" Value="1:00:00"></asp:ListItem>
                                    <asp:ListItem Text="2" Value="2:00:00"></asp:ListItem>
                                    <asp:ListItem Text="3" Value="3:00:00"></asp:ListItem>
                                    <asp:ListItem Text="4" Value="4:00:00"></asp:ListItem>
                                    <asp:ListItem Text="5" Value="5:00:00"></asp:ListItem>
                                    <asp:ListItem Text="6" Value="6:00:00"></asp:ListItem>
                                    <asp:ListItem Text="7" Value="7:00:00"></asp:ListItem>
                                    <asp:ListItem Text="8" Value="8:00:00"></asp:ListItem>
                                    <asp:ListItem Text="9" Value="9:00:00"></asp:ListItem>
                                    <asp:ListItem Text="10" Value="10:00:00"></asp:ListItem>
                                    <asp:ListItem Text="11" Value="11:00:00"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <div class="col-md-1 col-sm-6 col-xs-12">
                                <asp:DropDownList ID="DDL_FromAMPM" runat="server">
                                    <asp:ListItem Text="AM" Value="AM"></asp:ListItem>
                                    <asp:ListItem Text="PM" Value="PM"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <label>
                                    <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN0000690%>" EnableViewState="false" />:
                                </label>
                                <div class="form-group display-date-input">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ToDate" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <i runat="server" id="A_ToDate" class="material-icons icon-calendar col-calendar"></i>
                                <EM:CalendarExtender ID="CE_ToDate" runat="server" TargetControlID="TxBx_ToDate"
                                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                    PopupButtonID="A_ToDate" CssClass="date__calendar">
                                </EM:CalendarExtender>
                            </div>
                            <div class="col-md-1 col-sm-6 col-xs-12">
                                <asp:DropDownList ID="ddl_ToTime" runat="server">
                                    <asp:ListItem Text="12" Value="12:00:00"></asp:ListItem>
                                    <asp:ListItem Text="1" Value="1:00:00"></asp:ListItem>
                                    <asp:ListItem Text="2" Value="2:00:00"></asp:ListItem>
                                    <asp:ListItem Text="3" Value="3:00:00"></asp:ListItem>
                                    <asp:ListItem Text="4" Value="4:00:00"></asp:ListItem>
                                    <asp:ListItem Text="5" Value="5:00:00"></asp:ListItem>
                                    <asp:ListItem Text="6" Value="6:00:00"></asp:ListItem>
                                    <asp:ListItem Text="7" Value="7:00:00"></asp:ListItem>
                                    <asp:ListItem Text="8" Value="8:00:00"></asp:ListItem>
                                    <asp:ListItem Text="9" Value="9:00:00"></asp:ListItem>
                                    <asp:ListItem Text="10" Value="10:00:00"></asp:ListItem>
                                    <asp:ListItem Text="11" Value="11:00:00"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <div class="col-md-1 col-sm-6 col-xs-12">
                                <asp:DropDownList ID="ddl_ToTimeAMPM" runat="server">
                                    <asp:ListItem Text="AM" Value="AM"></asp:ListItem>
                                    <asp:ListItem Text="PM" Value="PM"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>

    <div id="Div_OrgInfo" runat="server" visible="false">
        <%--Summary card--%>
        <div class="panel-group" id="AS_Summary" role="tablist" aria-multiselectable="true">
            <div class="panel panel-primary">
                <div class="panel-heading collapsed" role="tab" id="heading_Summary">
                    <h2 class="panel-title">
                        <a role="button" id="A_Summary" data-toggle="collapse" data-parent="#AS_Summary" href="#CSB_Summary" aria-expanded="true" aria-controls="CSB_Summary" class="">
                            <%= Resources.Content.GN0000835%>
                        </a>
                    </h2>
                </div>
                <div id="CSB_Summary" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading_Summary" aria-expanded="true" style="">
                    <div class="panel-body">

                        <div class="row">
                            <div class="col-sm-2 col-xs-6 row-label">
                                <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,OrganizationName %>"></asp:Label>:
                            </div>
                            <div class="col-sm-10 col-xs-6">
                                <asp:HyperLink ID="HL_OrganizationName" runat="server"></asp:HyperLink>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-6 row-label">
                                <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Content,DGN1110414 %>"></asp:Label>:
                            </div>
                            <div class="col-sm-10 col-xs-6">
                                <asp:Label ID="Lbl_PrimaryDomain" runat="server"></asp:Label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-6 row-label">
                                <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content,MailSent %>"></asp:Label>:
                            </div>
                            <div class="col-sm-10 col-xs-6">
                                <asp:Label ID="Lbl_Sent" runat="server"></asp:Label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-6 row-label">
                                <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,MailReceived %>"></asp:Label>:
                            </div>
                            <div class="col-sm-10 col-xs-6">
                                <asp:Label ID="Lbl_Received" runat="server"></asp:Label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-6 row-label">
                                <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,TotalMails %>"></asp:Label>:
                            </div>
                            <div class="col-sm-10 col-xs-6">
                                <asp:Label ID="Lbl_Total" runat="server"></asp:Label>
                            </div>
                        </div>

                        <div class="row hide" id="divGraph" runat="server">
                            <div class="col-xs-12">
                                <h4 class="text-center"><%= Resources.Content.strMailboxesAllocationOnDatabases%></h4>
                                <div id="graph1"></div>
                                <pre id="code2" class="prettyprint linenums">                                            
                                       </pre>
                            </div>
                        </div>

                        <ajax:UpdatePanel ID="UP_Summary" runat="server">
                            <ContentTemplate>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_ExportSummaryToExcel" class="btn btn-primary waves-effect pull-right" runat="server" Text='<%$ Resources:Content,Ex001 %>' />
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:GridView ID="GV_MailFlowLogsSummary" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                            <Columns>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-6" HeaderText='<%$ Resources:Content, Mailbox %>' SortExpression="Mailbox">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_Mailbox" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, MailSent %>' SortExpression="Sent">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_Sent" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, MailReceived %>' SortExpression="Recieve">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_Received" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, TotalMails %>' SortExpression="Total">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_Total" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager1" runat="server" />
                                            </PagerTemplate>
                                        </asp:GridView>
                                    </div>
                                </div>

                            </ContentTemplate>
                        </ajax:UpdatePanel>
                    </div>
                </div>
            </div>
        </div>
        <%--Detail card--%>
        <div class="panel-group" id="AS_Detail" role="tablist" aria-multiselectable="true">
            <div class="panel panel-primary">
                <div class="panel-heading" role="tab" id="heading_Detail">
                    <h2 class="panel-title">
                        <a role="button" id="A_Detail" data-toggle="collapse" data-parent="#AS_Detail" href="#CSB_Detail" aria-expanded="false" aria-controls="CSB_Detail" class="collapsed">
                            <%= Resources.Content.GN0000843%>
                        </a>
                    </h2>
                </div>
                <div id="CSB_Detail" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading_Detail" aria-expanded="false" style="height: 0px;">
                    <div class="panel-body">
                        <ajax:UpdatePanel ID="UP_Detail" runat="server">
                            <ContentTemplate>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_RefreshTab" CssClass="RefreshTab" runat="server" Style="display: none;" />
                                        <EM:TabContainer ID="TC_TrafficType" runat="server" OnClientActiveTabChanged="loadTabPanel" ActiveTabIndex="0">
                                            <EM:TabPanel ID="Tab_ReceivedTraffic" runat="server" HeaderText='<%$ Resources:Content,ReceivedTraffic%>'>
                                                <ContentTemplate>
                                                    <asp:Button ID="Btn_Tab0" runat="server" Style="display: none" />
                                                    <asp:Panel ID="Pnl_TabContent0" runat="server" Visible="true">
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </EM:TabPanel>
                                            <EM:TabPanel ID="Tab_SendTraffic" runat="server" HeaderText='<%$ Resources:Content,SentTraffic%>'>
                                                <ContentTemplate>
                                                    <asp:Button ID="Btn_Tab1" runat="server" Style="display: none" />
                                                    <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </EM:TabPanel>
                                        </EM:TabContainer>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 row-label">
                                        <asp:Label ID="Lbl_By" runat="server" Text="<%$ Resources:Content, MailReceivedBy%>"></asp:Label>:
                                    </div>
                                    <div class="col-xs-12">
                                        <EM:AddSelectableSelected ID="UC_By" runat="server" />
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 row-label">
                                        <asp:Label ID="Lbl_From" runat="server" Text="<%$ Resources:Content, MailReceivedFrom%>"></asp:Label>:
                                    </div>
                                    <div class="col-sm-4">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_From" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 row-label">
                                        <asp:Label ID="Label6" runat="server" Text="<%$ Resources:Content, MessageSubject%>"></asp:Label>:
                                    </div>
                                    <div class="col-sm-4">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="Txbx_MessageSubject" runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_SearchDetail" CausesValidation="false" runat="server" Text="<%$ Resources:Content,GN0000391%>"
                                            CssClass="btn btn-primary waves-effect" />
                                        <asp:Button ID="Btn_ClearFilterDetail" Visible="false" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_ExportDetailToExcel" class="btn btn-primary waves-effect pull-right" runat="server" Text='<%$ Resources:Content,Ex001 %>' />
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:GridView ID="GV_MailFlowLogsDetail" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                            <Columns>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, GN0000721 %>' SortExpression="Timestamp">
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Lbl_Timestamp" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2 break-word-all" HeaderText='<%$ Resources:Content, GN0000542 %>' SortExpression="Sender">
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Lbl_Sender" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-3" HeaderText='<%$ Resources:Content, Recipients %>' SortExpression="Recipients">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_Recipients_FullText"
                                                            data-num='<%# "FullText" & DataBinder.Eval(Container.DataItem, "RowIndex")%>'
                                                            runat="server" Text="" CssClass="hide break-word-all" />
                                                        <asp:Label ID="Lbl_Recipients_PartialText"
                                                            data-num='<%# "PartialText" & DataBinder.Eval(Container.DataItem, "RowIndex") %>'
                                                            CssClass="break-word-all"
                                                            runat="server" Text="" />
                                                        <br />
                                                        <asp:Button
                                                            ID="lbtn_More"
                                                            runat="server"
                                                            CommandName="Detail"
                                                            CommandArgument='<%# DataBinder.Eval(Container.DataItem, "RowIndex")%>'
                                                            Text="<%$ Resources:Content,ShowMore %>"
                                                            CssClass="btn btn-primary btn-sm"
                                                            data-num='<%# DataBinder.Eval(Container.DataItem, "RowIndex")%>'
                                                            data-num2='<%# "More" & DataBinder.Eval(Container.DataItem, "RowIndex")%>'
                                                            OnClientClick="ShowFullText($(this));return false;"></asp:Button>
                                                        <button id="btn_ViewLess"
                                                            class="btn btn-primary btn-sm hide"
                                                            data-num='<%#  DataBinder.Eval(Container.DataItem, "RowIndex") %>'
                                                            data-num2='<%# "Less" & DataBinder.Eval(Container.DataItem, "RowIndex")%>'
                                                            onclick="ShowPartialText($(this));return false;">
                                                            <%= Resources.Content.ShowLess %></button>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2 break-word-all" HeaderText='<%$ Resources:Content, MessageSubject %>' SortExpression="MessageSubject">
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Lbl_MessageSubject" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, MessageSize %>' SortExpression="TotalBytes">
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Lbl_MessageSize" runat="server"></asp:Literal>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2 break-word-all" HeaderText='<%$ Resources:Content, MessageId %>'>
                                                    <ItemTemplate>
                                                        <p id="P_MessageId" runat="server">
                                                            <%--<asp:Literal ID="Lbl_MessageId" runat="server"></asp:Literal>--%>
                                                        </p>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager2" runat="server" />
                                            </PagerTemplate>
                                        </asp:GridView>
                                    </div>
                                </div>
                            </ContentTemplate>
                        </ajax:UpdatePanel>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

