<asp:Panel ID="panelOverlay2" runat="server" CssClass="Overlay" Visible="false">
</asp:Panel>
<asp:Panel ID="panelPopUpPanel2" runat="server" CssClass="PopUpPanel" Visible="false"
Style="left: 5%; right: 5%; top: 100px">
<asp:Panel ID="panelPopUpTitle2" runat="server" Style="width: 100%; height: 20px; text-align: right;">
<asp:ImageButton ID="cmdClosePopUp2" runat="server" ImageUrl="~/View/CertificationAgency/images/Close.gif"
Height="15px" Width="20px" OnClick="cmdClosePopUp2_Click" />
</asp:Panel>
<div style="border: 1px dotted #000000">
<fieldset class="basic_d" id="fsRequestDetails" runat="server" style="width: 98%">
<legend>Batch Details</legend>
<div>
<center>
<table align="center" width="100%" cellpadding="3" cellspacing="1">
<tr>
<td>
<asp:Panel ID="panel1" runat="server" Height="100%" Width="100%" ScrollBars="Horizontal">
<asp:GridView ID="grdBatchDetails" runat="server" CssClass="table table-responsive"
AutoGenerateColumns="False" EmptyDataText="No Records Found!" ShowHeaderWhenEmpty="True"
AllowPaging="True" PagerSettings-PageButtonCount="10" PagerSettings-Mode="Numeric"
CellPadding="4"
ForeColor="#333333" GridLines="None" Width="100%">
<Columns>
<asp:TemplateField HeaderText="S.No." ItemStyle-Width="40">
<ItemTemplate>
<%#(grdBatchDetails.PageSize * grdBatchDetails.PageIndex) + (Container.DisplayIndex + 1)%>
</ItemTemplate>
<ItemStyle Width="10" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Batch Code">
<ItemTemplate>
<asp:Label id="Batch_Code" Text='<%# Eval("Batch_Code") %>' Width="100px" runat="server" CssClass="GridViewButton"/>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Certifying_agency_name" HeaderText="Certifying Agency Name" Visible="true" />
<asp:BoundField DataField="Training_Partner_id" HeaderText="Training Partner id" Visible="true" />
<asp:BoundField DataField="Course_Code" HeaderText="Course Code" Visible="true" />
<asp:TemplateField HeaderText="Course Name">
<ItemTemplate>
<asp:Label ID="Course_Name" runat="server" Width="150px" Text='<%# Eval("Course_Name") %>'/>
</ItemTemplate>
<ItemStyle HorizontalAlign="Left" Font-Names="Arial" Font-Size="8pt"/>
</asp:TemplateField>
<asp:BoundField DataField="Max_Student_Allowed" NullDisplayText="N/A" HeaderText="Batch Size"/>
<asp:TemplateField HeaderText="Start Date">
<ItemTemplate>
<asp:Label ID="Start_date" runat="server" Width="100px" Text='<%# Eval("Start_date") %>' /><br />
</ItemTemplate>
<ItemStyle HorizontalAlign="Left" Font-Names="Arial" Font-Size="8pt" />
</asp:TemplateField>
<asp:TemplateField HeaderText="End Date">
<ItemTemplate>
<asp:Label ID="End_date" runat="server" Width="100px" Text='<%# Eval("End_date") %>' /><br />
<asp:Label ID="createddate" runat="server" Visible="false" Width="60px" Text='<%# Eval("createddate") %>' DataFormatString="{0:dd/MM/yyyy}" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Left" Font-Names="Arial" Font-Size="8pt" />
</asp:TemplateField>
<asp:BoundField DataField="batchLocation" NullDisplayText="N/A" HeaderText="Location" Visible="false"/>
<asp:BoundField DataField="RegisterStudent_Status" NullDisplayText="" HeaderText="Register Student" Visible="false"/>
</Columns>
<EditRowStyle BackColor="#2461BF" />
<FooterStyle BackColor="#21A8E0" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#21A8E0" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#EFF3FB" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>
</asp:Panel>
</td>
</tr>
</table>
</center>
</div>
</fieldset>
</div>
</asp:Panel>
--------------------------
aspx.cs page
public void ShowPopup(Boolean b)
{
panelOverlay.Visible = b;
panelPopUpPanel.Visible = b;
}
protected void LnkBtn_GenericNOSUndertaking_Click(object sender, EventArgs e)
{
ShowPopup(true);
//iframePDFViewer.Attributes["src"] = "../../TrainingPartner/StudentData/Certificate/" + Lbl_EC_Title.Text;
iframePDFViewer.Attributes["src"] = "..\\..\\TrainingPartner\\StudentData\\Attendance\\" + lblGenericNOSUndertakingFileName.Text;
if (lblGenericNOSStatus.Text == "2")
{
imgApproveGenericNOSUndertaking.Visible = true;
}
else
{
btnVerifyGenericNOSUndertaking.Visible = true;
imgApproveGenericNOSUndertaking.Visible = false;
}
}
No comments:
Post a Comment