<%@ page title="Other Details" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_StudentManagement_Documents, App_Web_rmwkgjb4" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <%--<div id="dvTestLoadingmsg" class="hls-wrap">
        <div class="hls-container">
            <div class="hls-content">
                <div class="dsh-syndicate white-popup" style="display: inline-block; width: 119%; height: 150px">
                    <div class="shippingcard" style="text-align: center; vertical-align: middle; width: 100%;">
                        <span id="spn1msg">Loading Details</span><br>
                        <span style="line-height: 2;" id="spn2msg"><b>Please Wait ...</b></span><br>
                        <span id="spnloadingimgOPD">
                            <img src="../../../Images/Loading1.gif" /></span>
                    </div>
                </div>
            </div>
        </div>
    </div>--%>
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <div>
                <asp:Panel ID="employeesearchdetailpanel" runat="server" meta:resourcekey="employeesearchdetailpanelresource1">
                    <div id="divContentPage" class="divcontentpagemargin">

                        <div class="dashBoardLeftCont">
                            <div class="himssuHeader3WireBox">
                                <table>
                                    <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="102" Visible="true" runat="server" />
                                </table>
                            </div>
                        </div>
                        <div class="whiteboxpaddingleft row">
                            <div class="himssuHeader1WireBox card card-box">
                                <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText fLeft">
                                            <header>
                                                <i class="fal fa-graduation-cap"></i>
                                                <asp:Label ID="Label4" Text="Student Detail" runat="server" />
                                            </header>
                                        </div>
                                    </div>
                                    <div class="fRight mt-27 display-flex pagination">
                                        <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                            ID="FirstRecordImageButton" runat="server" OnClick="FirstRecordImageButton_Click">
                                                       <i class="fa fa-fast-backward"></i>
                                        </asp:LinkButton>
                                        <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                            ID="PreviousImageButton" runat="server" OnClick="PreviousImageButton_Click">
                                                       <i class="fa fa-play fa-rotate-180"></i>
                                        </asp:LinkButton>
                                        &nbsp; &nbsp;
                                                    <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                        &nbsp;  
                                        <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                        &nbsp;   
                                        <asp:Label ID="ofLabel" Text="of" runat="server" />
                                        &nbsp;    
                                        <asp:Label ID="TotalRecord" runat="server" />
                                        &nbsp;
                                                    <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                                        ID="NextImageButtom" runat="server" OnClick="NextImageButton_Click">
                                                       <i class="fa fa-play"></i>
                                                    </asp:LinkButton>
                                        <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First page"
                                            ID="LastRecordImageButton" runat="server" OnClick="LastRecordImageButton_Click">
                                                       <i class="fa fa-fast-forward"></i>
                                        </asp:LinkButton>
                                        &nbsp;  &nbsp;  &nbsp;
                                       <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                           CssClass="btn btn-back fas" Text="&#xf30a; Back" />
                                        &nbsp; 
                                    </div>
                                </div>
                                <div class="himsBoxContent">
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">
                                            <div class="topdisplayContainer">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <div class="himsDisplayBox">
                                                                <div style="margin-top: 0px">
                                                                </div>
                                                                <div class="himsBoxContent messageMessage">
                                                                    <div class="topdisplayContainer p-l-10">
                                                                        <table class="fLeft">
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="CodeLabelL" runat="server" Text="ID No :" Font-Bold="true"></asp:Label>
                                                                                    &nbsp;&nbsp;
                                                                                    <asp:Label ID="CodeLabelT" runat="server" Text=""></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label ID="NameLabelL" runat="server" Text="Name :" Font-Bold="true"></asp:Label>
                                                                                    &nbsp;&nbsp;
                                                                                    <asp:Label ID="NameLabelT" runat="server" Text=""></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label ID="ClassLabelL" runat="server" Text="Class :" Font-Bold="true"></asp:Label>
                                                                                    &nbsp;&nbsp;
                                                                                    <asp:Label ID="ClassLabelT" runat="server" Text=""></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Label ID="RollNoLabelL" runat="server" Text="Roll No. :" Font-Bold="true"></asp:Label>
                                                                                    &nbsp;&nbsp;
                                                                                    <asp:Label ID="RollNoLabelT" runat="server" Text=""></asp:Label>
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                                <td>&nbsp;
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                        <div class="cBoth">
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="himsBoxFooter">
                                                                    <div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <div class="navgraybackground">
                                                <ul class="nav nav-tabs">
                                                    <li>
                                                        <a href="#tab_1">
                                                            <asp:Button Text="&#xf044; General" ID="StudentMasterButton" CssClass="transparenttab fas" OnClick="StudentMasterButton_Click"
                                                                SkinID="0" runat="server" />
                                                        </a>
                                                    </li>
                                                    <li><a>
                                                        <asp:Button Text="&#xf19d; Admission" ID="AdmissionButton" CssClass="transparenttab fas" OnClick="Admission_Click"
                                                            SkinID="0" runat="server" />
                                                    </a></li>
                                                    <li><a>
                                                        <asp:Button Text="&#xf1fe; Demographic" ID="DemographicButton" CssClass="transparenttab fas" OnClick="Demographic_Click"
                                                            SkinID="0" runat="server" />
                                                    </a></li>
                                                    <li><a>
                                                        <asp:Button Text="&#xf095; Communication" ID="CommunicationButton" CssClass="transparenttab fa" OnClick="Communication_Click"
                                                            SkinID="0" runat="server" />
                                                    </a></li>
                                                    <li><a>
                                                        <asp:Button Text="&#xf0c0; Family" ID="FamilyButton" CssClass="transparenttab fas" OnClick="FamilyButton_Click"
                                                            SkinID="0" runat="server" />
                                                    </a></li>
                                                    <li><a>
                                                        <asp:Button Text="&#xf21e; Health" ID="StudentHealth" CssClass="transparenttab fas" OnClick="StudentHealth_Click"
                                                            SkinID="0" runat="server" />
                                                    </a></li>
                                                    <li class="active"><a>
                                                        <asp:Button Text="&#xf15b; Documents" ID="DocumentsButton" CssClass="transparenttab fa" SkinID="0" OnClick="Documents_Click"
                                                            runat="server" />
                                                    </a></li>
                                                    <li><a>
                                                        <asp:Button Text="&#xf1c5; Other Photo" ID="OtherPhotoButton" CssClass="transparenttab fas" SkinID="0" OnClick="OtherPhoto_Click"
                                                            runat="server" />
                                                    </a></li>
                                                </ul>
                                            </div>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:HiddenField ID="UserSourceTypeHiddenField" runat="server" />
                                                        <asp:HiddenField ID="UserSourceIdHiddenField" runat="server" />
                                                        <asp:HiddenField ID="DocumentNameHiddenField" runat="server" />
                                                        <asp:HiddenField ID="UploadConfigurationHiddenField" runat="server" />
                                                        <asp:HiddenField ID="ScreenIdHiddenField" runat="server" />
                                                        <asp:HiddenField ID="AttachmentSizeHiddenField" runat="server" />
                                                        <asp:Panel ID="PanEnable" runat="server" meta:resourcekey="PanEnableResource1" Visible="false">
                                                            <div class="himssuHeader1WireBox">
                                                                <div class="himsBoxContent card-body">
                                                                    <div class="contentHolder">
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                                                    <i class="fa fa-arrow-down"></i>&nbsp;Browser

                                                                                </a>

                                                                                <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" AllowMultiple="true" />
                                                                                <br />

                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-12">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Button runat="server" ID="RefreshButton" Text="&#xf2f9; Refresh" OnClick="RefreshButton_OnClick"
                                                                                    SkinID="0" CssClass="btn btn-class fas" />
                                                                                <asp:Button runat="server" ID="UploadButton" Text="&#xf093; Upload" OnClick="UploadButton_Click"
                                                                                    SkinID="0" CssClass="btn btn-upload fas" />
                                                                            </div>
                                                                        </div>
                                                                        <div class="col-md-12 ">
                                                                            <asp:Label ID="Label2" runat="server" Text="" CssClass="alert alert-success label2 alert-dismissible fade in" Style="font-size: medium;"></asp:Label>
                                                                        </div>

                                                                        <div id="Div11" class="himssuHeader6WireBox pTop5" runat="server">
                                                                            <div id="UploadDiv" visible="false" runat="server">

                                                                                <div class="himsBoxHeader card-head inner" id="HeaderDiv" visible="false" runat="server">
                                                                                    <div class="leftdiv">
                                                                                    </div>
                                                                                    <div class="himsBoxTitle">
                                                                                        <div class="headerText">
                                                                                            <div>
                                                                                                <header>
                                                                                                    <asp:Label ID="Label7" Text="File List" runat="server" Font-Bold="true" />
                                                                                                </header>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="himsBoxContent col-md-12">
                                                                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
                                                                                        <ContentTemplate>
                                                                                            <div class="table-responsive">
                                                                                                <div id="GridViewDiv" runat="server" visible="false">
                                                                                                    <asp:GridView ID="FileGridView" runat="server" AutoGenerateColumns="False"
                                                                                                        ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded" CssClass="table table-striped table-bordered">
                                                                                                        <Columns>
                                                                                                            <asp:TemplateField HeaderText="File Name" ItemStyle-Width="90%" HeaderStyle-HorizontalAlign="Left"
                                                                                                                ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:HyperLink ID="FileNameHyperLink" runat="server" Text='<%# Eval("FileName") %>'
                                                                                                                        NavigateUrl='<%# Eval("FilePath") %>' Target="_blank"></asp:HyperLink>
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                            <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:ImageButton ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_OnClick"
                                                                                                                        ToolTip="Delete" ImageUrl="~/Images/Del.png" />
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                        </Columns>
                                                                                                    </asp:GridView>
                                                                                                </div>
                                                                                            </div>
                                                                                        </ContentTemplate>
                                                                                    </asp:UpdatePanel>
                                                                                </div>
                                                                            </div>
                                                                        </div>



                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel runat="server" meta:resourcekey="PanEnableResource1" ID="Documentsubmitpanel" Visible="false">
                                                            <div class="himssuHeader1WireBox">
                                                                <div class="himsBoxContent card-body">
                                                                    <div class="contentHolder">
                                                                        <div class="himssuHeader6WireBox" runat="server" style="width: 100%; margin-right: 5px;">
                                                                            <div>

                                                                                <%--   <div class="himsBoxHeader card-head inner">
                                                                                    <div class="leftdiv">
                                                                                    </div>
                                                                                    <div class="himsBoxTitle">
                                                                                        <div class="headerText ">
                                                                                            <div>
                                                                                              <header>
                                                                                                    <asp:Label ID="Label1" Text="Document List" runat="server" Font-Bold="true" Style="margin-left: 15px;" />
                                                                                                </header>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                </div>--%>

                                                                                <div class="himsBoxContent col-md-12 pTop15 pb15">

                                                                                    <div class="mt-10 alignCenter pb15 width-100" id="LocalStorageDiv"  runat="server" visible="false">
                                                                                        <asp:Button runat="server" ID="DocumentUploadButton" Text="&#xf093; Upload" OnClick="DocumentUploadButton_Click"
                                                                                            SkinID="0" CssClass="btn btn-upload fas" />
                                                                                        <asp:Button runat="server" ID="SaveButton" Text="&#xf0c7; Save" OnClick="SaveButton_Click"
                                                                                            SkinID="0" CssClass="btn btn-save fas" />

                                                                                    </div>
                                                                                    <div class="mt-10 alignCenter pb15 width-100" id="AzureUploadDiv"  runat="server" visible="true">
                                                                                        <asp:Button runat="server" ID="StudentDocumentUploadButton" Text="&#xf093; Upload" OnClick="StudentDocumentUploadButton_Click"
                                                                                            SkinID="0" CssClass="btn btn-upload fas" />
                                                                                        <asp:Button runat="server" ID="StudentSaveButton" Text="&#xf0c7; Save" OnClick="StudentSaveButton_Click"
                                                                                            SkinID="0" CssClass="btn btn-save fas" />
                                                                                         <asp:Button runat="server" ID="DownloadDocument" Text="&#xf0c7; Save" OnClick="DownloadDocument_Click"
                                                                                            SkinID="0" CssClass="btn btn-save fas d-none" Style="display: none;"/>
                                                                                    </div>
                                                                                    <asp:HiddenField ID="DocumentId" runat="server" />
                                                                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Always">
                                                                                        <ContentTemplate>
                                                                                            <div id="Div5" runat="server">
                                                                                                <asp:GridView ID="DocumentGridView" runat="server" AutoGenerateColumns="False" 
                                                                                                    ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded" CssClass="table table-striped table-bordered" DataKeyNames="DocumentId,FileName" OnRowDataBound="DocumentGridView_RowDataBound">
                                                                                                    <Columns>
                                                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%">
                                                                                                            <HeaderTemplate>
                                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                                    <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="checkallDocumnet(this);" />
                                                                                                                    <span></span>
                                                                                                                </label>
                                                                                                            </HeaderTemplate>
                                                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                                                            <ItemTemplate>
                                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server" Checked='<%# Convert.ToBoolean(Eval("IsCheck")) %>' />
                                                                                                                    <span></span>
                                                                                                                </label>
                                                                                                            </ItemTemplate>
                                                                                                        </asp:TemplateField>
                                                                                                        <asp:BoundField DataField="DocumentName" HeaderText="Document Name" ItemStyle-HorizontalAlign="Left"
                                                                                                            HeaderStyle-HorizontalAlign="left" ItemStyle-Width="30%" />
                                                                                                        <asp:TemplateField HeaderText="File Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left"
                                                                                                            ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                                            <ItemTemplate>
                                                                                                                <asp:HyperLink ID="UploadedFileHyperLink" runat="server" Text="" CssClass="UploadedgetHyperLink"
                                                                                                                    Target="_blank"></asp:HyperLink>
                                                                                                            </ItemTemplate>
                                                                                                        </asp:TemplateField>
                                                                                                        <asp:TemplateField HeaderText="File Size" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"
                                                                                                            ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                                            <ItemTemplate>
                                                                                                                <asp:Label ID="FileSizeLabel" CssClass="FileSizeLabel" runat="server"></asp:Label>
                                                                                                            </ItemTemplate>
                                                                                                        </asp:TemplateField>
                                                                                                        <asp:TemplateField HeaderText="Upload File" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="left"
                                                                                                            ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                                            <ItemTemplate>
                                                                                                                <a href="javascript:;" runat="server" id="OpenFileUpload"  class="btn btn-browser">
                                                                                                                    <i class="fa fa-arrow-down"></i>Browse</a>
                                                                                                                <asp:FileUpload ID="NewUpload" runat="server" onChange="readURLGrid3(this);" CssClass="NewUpload" ClientIDMode="Static" Style="display: none;" AllowMultiple="true" />
                                                                                                                <asp:ImageButton ID="DocumentRefreshbutton" runat="server" OnClick="DocumentRefreshbutton_Click" Style="display: none;" />
                                                                                                            </ItemTemplate>
                                                                                                        </asp:TemplateField>
                                                                                                        <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="center"
                                                                                                            ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                                            <ItemTemplate>
                                                                                                                <asp:ImageButton ID="DeleteuploadedDocumnetImageButton" runat="server" OnClick="DeleteuploadedDocumnetImageButton_Click"
                                                                                                                    ToolTip="Delete" ImageUrl="~/Images/Del.png" />
                                                                                                            </ItemTemplate>
                                                                                                        </asp:TemplateField>
                                                                                                    </Columns>
                                                                                                </asp:GridView>
                                                                                                 </div>
                                                                                                      <div id="Div3" runat="server" class="table-responsive">
                                                                                                <asp:GridView ID="StudentDocumentMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                                        ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded" CssClass="table table-striped table-bordered table-hover"
                                                                                                        DataKeyNames="DocumentId,FileName,OrgGroupBatchId,IsMigrate"  >
                                                                                                        <Columns>
                                                                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%">
                                                                                                                <HeaderTemplate>
                                                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="checkallDocumnet(this);" />
                                                                                                                        <span></span>
                                                                                                                    </label>
                                                                                                                </HeaderTemplate>
                                                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                                                                <ItemTemplate>
                                                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" Checked='<%# Convert.ToBoolean(Eval("IsCheck")) %>' />
                                                                                                                        <span></span>
                                                                                                                    </label>
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                            <asp:BoundField DataField="DocumentName" HeaderText="Document Name" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                                                                            <asp:BoundField DataField="FileName" HeaderText="File Name" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                                                                            <asp:BoundField DataField="DocumentSize" HeaderText="File Size" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                                                                           <%--<asp:TemplateField HeaderText="File Name" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"
                                                                                                                ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:Label ID="FileNameLabel" CssClass="FileNameLabel" runat="server"></asp:Label>
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>--%>
                                                                                                           <%-- <asp:TemplateField HeaderText="File Size" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"
                                                                                                                ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:Label ID="FileSizeLabel" CssClass="FileSizeLabel" runat="server"></asp:Label>
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>--%>
                                                                                                             <asp:TemplateField HeaderText="" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"
                                                                                                                ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:LinkButton ID="DownloadLinkButton" runat="server" CommandName="Download" Text="Download" OnClick="DownloadLinkButton_Click" Visible='<%# Convert.ToBoolean(!string.IsNullOrEmpty(Eval("FileName").ToString())) %>'
                                                                                                                        CausesValidation="false"></asp:LinkButton>
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                            <asp:TemplateField HeaderText="Upload File" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <a href="javascript:;" class="btn btn-browser"  onclick='OpenFileUploadGrid5(<%#Eval("DocumentId")%>);'>
                                                                                                                        <i class="fa fa-arrow-down"></i>Browse</a>
                                                                                                                    <asp:FileUpload ID="NewUpload" runat="server" onChange="readURLGrid5(this);" ClientIDMode="Static" Style="display: none;" AllowMultiple="true" />
                                                                                                                    <asp:ImageButton ID="StudentDocumentRefreshbutton" runat="server" OnClick="StudentDocumentRefreshbutton_Click" Style="display: none;" />
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                            <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:ImageButton ID="DeleteStudentuploadedDocumnetImageButton" runat="server" OnClick="DeleteStudentuploadedDocumnetImageButton_Click" 
                                                                                                                        ToolTip="Delete" ImageUrl="~/Images/Del.png" />
                                                                                                                </ItemTemplate>
                                                                                                            </asp:TemplateField>
                                                                                                        </Columns>
                                                                                                    </asp:GridView>
                                                                                            </div>
                                                                                        </ContentTemplate>
                                                                                    </asp:UpdatePanel>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>

                    </div>
                </asp:Panel>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/document" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/document")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    
</asp:Content>
