Ajax tab container not visible on selectedindexchange event

I have 2 ajax tab panels. One of them is hidden.  The other has a gridview in it which I have a selectedindexchange event which does this


 tcIQADetail.visible = True

Open in new window


It should be quite straightforward but the problem is that when tcIQADetail.visible = false the gridview won't let me select he item and also won't run this code tcIQADetail.visible = True


<ajaxToolkit:TabContainer ID="tcIQA1" runat="server" ActiveTabIndex="0" Height="417px" Width="300px" CssClass="ajax__myTab" BorderColor="Gray" BorderStyle="Dotted" BorderWidth="1px" VerticalStripWidth="520px" ClientIDMode="Static" ScrollBars="Vertical">
             <ajaxToolkit:TabPanel runat="server"  HeaderText="IQA"  ID="tpIQA">
                 <ContentTemplate>
               <asp:UpdatePanel ID="upGVRecs" runat="server" UpdateMode="Conditional" ><ContentTemplate>

                        <asp:GridView ID="GridIVRecs" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#006666" BorderStyle="Dotted" BorderWidth="1px" CssClass="table table-hover table-condensed table-responsive" DataKeyNames="IVRECORDID,Type" DataSourceID="DSIVRecs" GridLines="None" OnRowDataBound="GridIVRecs_RowDataBound" OnSelectedIndexChanged="GridIVRecs_SelectedIndexChanged" PageSize="12">
                            <Columns>
                                <asp:BoundField DataField="IVRECORDID" HeaderText="IVRECORDID" InsertVisible="False" ReadOnly="True" SortExpression="IVRECORDID" />
                                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                                <asp:BoundField DataField="Type" HeaderText="Type" SortExpression="Type" />
                                <asp:BoundField DataField="Planned" DataFormatString="{0:dd/MM/yyy}" HeaderText="Planned" SortExpression="Planned" />
                                <asp:BoundField DataField="Actual" DataFormatString="{0:dd/MM/yyy}" HeaderText="Actual" SortExpression="Actual" />
                                <asp:CommandField ShowSelectButton="True" />
                            </Columns>
                            <SelectedRowStyle CssClass="success" />
                        </asp:GridView>

                          <asp:HiddenField ID="hdIVRecordID" runat="server" />

                          <asp:SqlDataSource ID="dsJustInserted" runat="server" ConnectionString="<%$ ConnectionStrings:IrisConnectionString %>" SelectCommand="GET_IQA" SelectCommandType="StoredProcedure">
                              <SelectParameters>
                                  <asp:SessionParameter Name="IVRECORDID" SessionField="insIVID" Type="Int32" />
                              </SelectParameters>
                        </asp:SqlDataSource>

                          <asp:Button ID="btnNewIV" runat="server" AccessKey="n" CssClass="btn-primary  btn-xxs" Text="New IV Record" OnClick="btnNewIV_Click" CausesValidation="False"  />
</ContentTemplate><Triggers>
 <asp:AsyncPostBackTrigger ControlID="tcIQA1$tpIQA$GridIVRecs"  />
                             <asp:AsyncPostBackTrigger ControlID="tcIQADetail$tpIQADETAIL1$btnDefaults"  />
                               <asp:AsyncPostBackTrigger ControlID="tcIQADetail$tpIQADETAIL1$btnSaveIVRecord"  />
 </Triggers></asp:UpdatePanel>
                 </ContentTemplate>
             </ajaxToolkit:TabPanel>
             <ajaxToolkit:TabPanel ID="tpShadowP"  runat="server" HeaderText="Shadow Profiles">
                 <ContentTemplate>
                 <asp:GridView ID="GridShadowProfs" runat="server" AutoGenerateColumns="False" CssClass="table table-hover table-condensed table-responsive" BackColor="White" BorderColor="#006666" BorderStyle="Dotted" BorderWidth="1px"
                            DataSourceID="DSShadowProfs" PageSize="12" >
                            <Columns>
                                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                                <asp:BoundField DataField="Type" HeaderText="Type" SortExpression="Type" />
                                <asp:BoundField DataField="Planned" DataFormatString="{0:dd/MM/yyy}" HeaderText="Planned"
                                    SortExpression="Planned" />
                                <asp:CommandField ShowSelectButton="True" />
                                <asp:BoundField DataField="QUALSCHEMEID" HeaderText="QUALSCHEMEID"
                                    SortExpression="QUALSCHEMEID" Visible="False" />
                                <asp:BoundField DataField="IVTYPEID" HeaderText="IVTYPEID"
                                    SortExpression="IVTYPEID" Visible="False" />
                            </Columns>
                            <SelectedRowStyle CssClass="success" />
                        </asp:GridView>
                 </ContentTemplate>
             </ajaxToolkit:TabPanel>
             <ajaxToolkit:TabPanel ID="tpSubmitIQA"  runat="server" HeaderText="Submit IQA">
                 <ContentTemplate>
                     <div id="siqa" class="tab-pane">
                         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                             <ContentTemplate>
                                 <asp:GridView ID="IVsSubmitted" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#006666" BorderStyle="Dotted" BorderWidth="1px" CssClass="table table-hover table-condensed table-responsive" DataSourceID="DSIVSubmitted" GridLines="None" OnPreRender="gv_PreRender" PageSize="12">
                                     <Columns>
                                         <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                                         <asp:BoundField DataField="Type" HeaderText="Type" SortExpression="Type" />
                                         <asp:BoundField DataField="Date Submitted" DataFormatString="{0:d}" HeaderText="Date Submitted" SortExpression="Date Submitted" />
                                     </Columns>
                                     <SelectedRowStyle CssClass="success" />
                                 </asp:GridView>
                                 <asp:Button ID="btnAddIVSubmission" runat="server" causesvalidation="false" CssClass="btn-primary btn-block" data-target="#modalAddIVSubmission" data-toggle="modal" Text="Add/Edit Qualifications Submitted For IV" />
                             </ContentTemplate>
                         </asp:UpdatePanel>
                         <div class="col-lg-6">
                         </div>
                     </div>
                 </ContentTemplate>
             </ajaxToolkit:TabPanel>
                         <ajaxToolkit:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
                      <HeaderTemplate>
                          Actions
                      </HeaderTemplate>
                  </ajaxToolkit:TabPanel>
        </ajaxToolkit:TabContainer>

Open in new window



<ajaxToolkit:TabContainer ID="tcIQADetail" runat="server"  Width="875px" CssClass="ajax__myTab" BorderColor="Gray" Visible ="false" BorderStyle="Dotted" BorderWidth="1px" ActiveTabIndex="0" Enabled="true">
                  <ajaxToolkit:TabPanel ID="tpIQADETAIL1" runat="server"  HeaderText="IQA Detail">
                      <HeaderTemplate>
                          IQA Detail
                      </HeaderTemplate>
                      <ContentTemplate>
                                  <asp:UpdatePanel ID="UpdatePanel7" runat="server"  UpdateMode="Conditional">
                            <ContentTemplate>
                        <asp:Label ID="lbIVID" runat="server"></asp:Label>

                           <asp:Button ID="btnDefaults" CssClass="btn-info  btn-xxs"  AccessKey="q"  runat="server" OnClick="btnDefaults_Click" Text="Auto Complete" CausesValidation="False" />
                                 <table class="auto-style1" id="IVRecTbl" runat="server">
            <tr runat="server">
                <td runat="server" class="auto-style3">Qualification</td>
                <td runat="server">
                    <asp:DropDownList ID="ddlQualSchemeID" runat="server" AppendDataBoundItems="True"
                                            DataSourceID="DSQuals" DataTextField="TITLE" CssClass="selectpickedr" data-live-search="true"
                                            DataValueField="QUALSCHEMEID" >
                        <asp:ListItem Value="0">-Select-</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rqddlQualSchemeID" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="ddlQualSchemeID" ErrorMessage="You must select a qualification." Font-Size="Large" ForeColor="#990000" Text="*" />
                </td>
            </tr>
            <tr runat="server">
                <td runat="server" class="auto-style3">IQA Type</td>
                <td runat="server">
                    <asp:DropDownList ID="ddlIVType" runat="server" AppendDataBoundItems="True"
                                            DataSourceID="DSIVType" DataTextField="IVTYPE"
                                            DataValueField="IVTYPEID" >
                        <asp:ListItem Value="0">-Select-</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rqddlIVType" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="ddlIVType" ErrorMessage="You must select an IV Type." Font-Size="Large" ForeColor="#990000" Text="*" />
                </td>
            </tr>
            <tr runat="server">
                <td runat="server" class="auto-style3">Planned Date</td>
                <td runat="server">
                    <asp:TextBox ID="txtPlannedDate" runat="server" ></asp:TextBox>
                    <ajaxToolkit:CalendarExtender ID="txtPlannedDate_CalendarExtender" runat="server"
                                            Enabled="True" TargetControlID="txtPlannedDate"  Format="dd/MM/yyyy">
                    </ajaxToolkit:CalendarExtender>
                    <asp:RequiredFieldValidator ID="rqtxtPlannedDate" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="txtPlannedDate" ErrorMessage="You must choose a'Planned Date'. " Font-Size="Large" ForeColor="#990000" Text="*" />
                </td>
            </tr>
            <tr runat="server">
                <td runat="server" class="auto-style3">Actual Date</td>
                <td runat="server">
                    <asp:TextBox ID="txtActualDate" runat="server" 
                                            ></asp:TextBox>
                    <ajaxToolkit:CalendarExtender ID="txtActualDate_CalendarExtender" runat="server"
                                            Enabled="True" TargetControlID="txtActualDate"  Format="dd/MM/yyyy">
                    </ajaxToolkit:CalendarExtender>
                    <asp:RequiredFieldValidator ID="rqtxtActualDate" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="txtActualDate" ErrorMessage="You must choose a'Actual Date'." Font-Size="Large" ForeColor="#990000" Text="*" />
                </td>
            </tr>
            <tr runat="server">
                <td runat="server" class="auto-style3">Outcome</td>
                <td runat="server">
                    <asp:DropDownList ID="ddlOutcome" runat="server" AppendDataBoundItems="True"
                                     DataSourceID="DSIVOutcome" 
                                            DataTextField="IVOUTCOME" DataValueField="IVOUTCOMEID">
                        <asp:ListItem Value="0">-Select-</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rqddlOutcome" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="ddlOutcome" ErrorMessage="You must choose an 'Outcome'." Font-Size="Large" ForeColor="#990000" Text="*" />
                </td>
            </tr>
            <tr runat="server">
                <td runat="server" class="auto-style3">PDM</td>
                <td runat="server">
                    <asp:DropDownList ID="ddlAssessorID" runat="server" AppendDataBoundItems="True" 
                                            DataSourceID="DSAssessorList" DataTextField="PDM" DataValueField="ASSESSORID" data-live-search="true"
                                         >
                        <asp:ListItem Value="0">-Select-</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rqddlAssessorID" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="ddlAssessorID" ErrorMessage="Please chooose an assessor." Font-Size="Large" ForeColor="#990000" Text="*" />
                </td>
            </tr>
            <tr runat="server">
                <td runat="server" class="auto-style3">IQA Name </td>
                <td runat="server">
                    <asp:DropDownList ID="ddlIQAName" runat="server" AppendDataBoundItems="True" 
                                            DataSourceID="DSListStaff" DataTextField="STAFFNAME" DataValueField="STAFFID" data-live-search="true">
                        <asp:ListItem Value="0">-Select-</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rqddlIQAName" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="ddlIQAName" ErrorMessage="Who is the IQA?" Font-Size="Large" ForeColor="#990000" Text="*" />
                    <asp:TextBox ID="TextBox11" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server">
                <td runat="server" class="auto-style3">IQA Site</td>
                <td runat="server">
                    <asp:DropDownList ID="ddlIQASite" runat="server" AppendDataBoundItems="True" 
                                            DataSourceID="DSIVSite" DataTextField="IVSITE" DataValueField="IVSITEID"
                                      >
                        <asp:ListItem Value="0">-Select-</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rqddlIQASite" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="ddlIQASite" ErrorMessage="What site was the IQA conducted at?" Font-Size="Large" ForeColor="#990000" Text="*" />
                </td>
            </tr>
            <tr runat="server">
                <td class="auto-style3" runat="server">Date Completed </td>
                <td class="auto-style2" runat="server">
                    <ajaxToolkit:CalendarExtender ID="txtDateCompleted_CalendarExtender" runat="server"
                                            Enabled="True" TargetControlID="txtDateCompleted" Format="dd/MM/yyyy">
                    </ajaxToolkit:CalendarExtender>
                    <asp:TextBox ID="txtDateCompleted" runat="server" 
                                           ></asp:TextBox>
<asp:RequiredFieldValidator ID="rqtxtDateCompleted" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="txtDateCompleted" ErrorMessage="Please choose a completion date." Font-Size="Large" ForeColor="#990000" Text="*" />
                </td>
            </tr>
        </table>
                        
                        <br />
        <p>
        <asp:Button ID="btnSaveIVRecord" CssClass="btn-success  btn-xxs" OnClick="btnSaveIVRecord_Click" AccessKey="s" runat="server" Text="Save Record" />
        </p>
                                <asp:Label ID="Label7" runat="server" Text=""></asp:Label>
        <p>
            &nbsp;</p>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Size="Medium" ForeColor="#990033" HeaderText="You must complete the following information before you can submit." />
                          <table id="tblrecordInserted" visible ="False" runat="server">
                            <tr runat="server">
                                <td runat="server">IV record Inserted.</td>
                            </tr>
                        </table></ContentTemplate> <Triggers>
 <asp:AsyncPostBackTrigger ControlID="tcIQA1$tpIQA$GridIVRecs"  />
                             <asp:AsyncPostBackTrigger ControlID="tcIQA1$tpIQA$btnNewIV"  />
     <asp:AsyncPostBackTrigger ControlID="tcIQADetail$tpIQADETAIL1$btnDefaults"  />
                               <asp:AsyncPostBackTrigger ControlID="tcIQADetail$tpIQADETAIL1$btnSaveIVRecord"  />
               
 </Triggers>    </asp:UpdatePanel>
                      </ContentTemplate>
                  </ajaxToolkit:TabPanel>
                  <ajaxToolkit:TabPanel ID="tpIQAComplaince"  onactivetabchanged="GetCompliance" runat="server" HeaderText="IQA Compliance">
                      <HeaderTemplate>
                          IQA Compliance
                      </HeaderTemplate>
                      <ContentTemplate>
                          <asp:UpdatePanel ID="UpdatePanel8" runat="server"><ContentTemplate>
                          <asp:Label ID="lbIVIDCompliance" runat="server"></asp:Label>
                <asp:Button ID="btnComplianceDefaults" CssClass="btn-info  btn-xxs" Visible =" false"  AccessKey="D"  runat="server"  Text="Auto Complete" CausesValidation="False" />
                        <br />  
                          <br />   
                          <asp:Button ID="btnAddComplanceForm" Visible ="False"  CssClass="btn-primary  btn-xxs"  runat="server" CausesValidation="false" Text="Add Compliance" />
                          <table id="IQAComplianceTable" runat="server" style="width: 500px" >
                              <tr runat="server">
                                  <td runat="server">Credits Correct?</td>
                                  <td runat="server">
                                      <asp:RadioButtonList ID="rblCreditsCorrect" runat="server" RepeatDirection="Horizontal" Width="200px">
                                          <asp:ListItem Value="True">Yes</asp:ListItem>
                                          <asp:ListItem Value="False">No</asp:ListItem>
                                      </asp:RadioButtonList>
                                  </td>
                                  <td runat="server">
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="rblCreditsCorrect" ErrorMessage="Are the 'Credits Correct'?" Font-Size="Large" ForeColor="#990000" Text="*" ValidationGroup="IQADETAIL"></asp:RequiredFieldValidator>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Rules Of Combination Correct</td>
                                  <td runat="server">
                                      <asp:RadioButtonList ID="rblCombinationCorrect" runat="server" RepeatDirection="Horizontal" Width="200px">
                                          <asp:ListItem Value="True">Yes</asp:ListItem>
                                          <asp:ListItem Value="False">No</asp:ListItem>
                                      </asp:RadioButtonList>
                                  </td>
                                  <td runat="server">
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="rblCombinationCorrect" ErrorMessage="Are the ' Rules of Combination' Correct?" Font-Size="Large" ForeColor="#990000" Text="*" ValidationGroup="IQADETAIL"></asp:RequiredFieldValidator>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">ILP in Place</td>
                                  <td runat="server">
                                      <asp:RadioButtonList ID="rblILPinPlace" runat="server" RepeatDirection="Horizontal" Width="200px">
                                          <asp:ListItem Value="True">Yes</asp:ListItem>
                                          <asp:ListItem Value="False">No</asp:ListItem>
                                      </asp:RadioButtonList>
                                  </td>
                                  <td runat="server">
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="rblILPinPlace" ErrorMessage="Is the 'ILP in Place'?" Font-Size="Large" ForeColor="#990000" Text="*" ValidationGroup="IQADETAIL"></asp:RequiredFieldValidator>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">ILP UptoDate</td>
                                  <td runat="server">
                                      <asp:RadioButtonList ID="rblilpUptodate" runat="server" RepeatDirection="Horizontal" Width="200px">
                                          <asp:ListItem Value="True">Yes</asp:ListItem>
                                          <asp:ListItem Value="False">No</asp:ListItem>
                                      </asp:RadioButtonList>
                                  </td>
                                  <td runat="server">
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="rblilpUptodate" ErrorMessage="Is the 'ILP UptoDate'?" Font-Size="Large" ForeColor="#990000" Text="*" ValidationGroup="IQADETAIL"></asp:RequiredFieldValidator>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Have Previous Action Been Completed?</td>
                                  <td runat="server">
                                      <asp:RadioButtonList ID="rbPreviousActions" runat="server" RepeatDirection="Horizontal" Width="200px">
                                          <asp:ListItem Value="True">Yes</asp:ListItem>
                                          <asp:ListItem Value="False">No</asp:ListItem>
                                      </asp:RadioButtonList>
                                  </td>
                                  <td runat="server">
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="rbPreviousActions" ErrorMessage="Have the'Previous Actions Been Completed'?" Font-Size="Large" ForeColor="#990000" Text="*" ValidationGroup="IQADETAIL"></asp:RequiredFieldValidator>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Is the Delivery Model in Place</td>
                                  <td runat="server">
                                      <asp:RadioButtonList ID="rblDMiP" runat="server" RepeatDirection="Horizontal" Width="200px">
                                          <asp:ListItem Value="True">Yes</asp:ListItem>
                                          <asp:ListItem Value="False">No</asp:ListItem>
                                      </asp:RadioButtonList>
                                  </td>
                                  <td runat="server">
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="rblDMiP" ErrorMessage="Is the ' Delivery Model in Place'?" Font-Size="Large" ForeColor="#990000" Text="*" ValidationGroup="IQADETAIL"></asp:RequiredFieldValidator>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Is The Delivery Model Up to Date</td>
                                  <td runat="server">
                                      <asp:RadioButtonList ID="rblDMUD" runat="server" RepeatDirection="Horizontal" Width="200px">
                                          <asp:ListItem Value="True">Yes</asp:ListItem>
                                          <asp:ListItem Value="False">No</asp:ListItem>
                                      </asp:RadioButtonList>
                                  </td>
                                  <td runat="server">
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="rblDMUD" ErrorMessage="Is the 'Delivery Model Up to Date'?" Font-Size="Large" ForeColor="#990000" Text="*" ValidationGroup="IQADETAIL"></asp:RequiredFieldValidator>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">&nbsp;</td>
                                  <td runat="server">&nbsp;</td>
                                  <td runat="server">&nbsp;</td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">
                                      <asp:Button ID="btnComplianceButton" CssClass="btn-success  btn-xxs" runat="server" ValidationGroup="IQADETAIL"/>
                                  </td>
                                  <td runat="server">
                                      &nbsp;</td>
                                  <td runat="server">&nbsp;</td>
                              </tr>
                          </table>
                          <br />
                          <asp:ValidationSummary ID="ValidationSummary2" runat="server" Font-Size="Medium" ForeColor="#990033" HeaderText="You must complete the following information before you can submit." />
                      </ContentTemplate><Triggers>
 <asp:AsyncPostBackTrigger ControlID="tcIQA1$tpIQA$GridIVRecs"  />
                             <asp:AsyncPostBackTrigger ControlID="tcIQA1$tpIQA$btnNewIV"  />
     <asp:AsyncPostBackTrigger ControlID="tcIQADetail$tpIQADETAIL1$btnDefaults"  />
                               <asp:AsyncPostBackTrigger ControlID="tcIQADetail$tpIQADETAIL1$btnSaveIVRecord"  />
               
 </Triggers> </asp:UpdatePanel></ContentTemplate>
                  </ajaxToolkit:TabPanel>
                  <ajaxToolkit:TabPanel ID="tpGradingandComments" runat="server" HeaderText="Grading and Comments">
                      <HeaderTemplate>
                          Grading &amp; Comments
                      </HeaderTemplate>
                      <ContentTemplate>  <asp:UpdatePanel ID="UpdatePanel10" runat="server"><ContentTemplate>
                          <br />
                          <asp:Label ID="lbGrading" runat="server" Text="Label"></asp:Label>
                          <br />
                          <asp:Button ID="btnGradingButton" runat="server" causesvalidation="false" CssClass="btn-primary btn-xxs"/>
                          <br />
                          <table id="IQAGradingTable" visible="False" runat="server" style="width: 70%">
                              <tr runat="server">
                                  <td runat="server">Planning</td>
                                  <td runat="server">
                                      <asp:DropDownList ID="ddlPlanningScore" runat="server" AutoPostBack="True">
                                          <asp:ListItem Value="0">Select</asp:ListItem>
                                          <asp:ListItem>1</asp:ListItem>
                                          <asp:ListItem>2</asp:ListItem>
                                          <asp:ListItem>3</asp:ListItem>
                                          <asp:ListItem>4</asp:ListItem>
                                          <asp:ListItem>5</asp:ListItem>
                                      </asp:DropDownList>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Planning Comments</td>
                                  <td runat="server">
                                      <asp:TextBox ID="txtPlannigComments" runat="server"  Rows="4" TextMode="MultiLine"></asp:TextBox>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Judging Evidence</td>
                                  <td runat="server">
                                      <asp:DropDownList ID="ddlJudgingScore" runat="server" AutoPostBack="True">
                                                          <asp:ListItem Value="0">Select</asp:ListItem>
                                          <asp:ListItem>1</asp:ListItem>
                                          <asp:ListItem>2</asp:ListItem>
                                          <asp:ListItem>3</asp:ListItem>
                                          <asp:ListItem>4</asp:ListItem>
                                          <asp:ListItem>5</asp:ListItem>
                                      </asp:DropDownList>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Judging Evidence Comments</td>
                                  <td runat="server">
                                      <asp:TextBox ID="txtJudgingEvidenceComments" runat="server"  Rows="4" TextMode="MultiLine"></asp:TextBox>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Feedback</td>
                                  <td runat="server">
                                      <asp:DropDownList ID="ddlFeedbackScore" runat="server" AutoPostBack="True">
                                                          <asp:ListItem Value="0">Select</asp:ListItem>
                                          <asp:ListItem>1</asp:ListItem>
                                          <asp:ListItem>2</asp:ListItem>
                                          <asp:ListItem>3</asp:ListItem>
                                          <asp:ListItem>4</asp:ListItem>
                                          <asp:ListItem>5</asp:ListItem>
                                      </asp:DropDownList>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Feedback Comments</td>
                                  <td runat="server">
                                      <asp:TextBox ID="txtFeedbackComments" runat="server"  Rows="4" TextMode="MultiLine"></asp:TextBox>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Quality</td>
                                  <td runat="server">
                                      <asp:DropDownList ID="ddlQualityScore" runat="server" AutoPostBack="True">
                                          <asp:ListItem Value="0">Select</asp:ListItem>
                                          <asp:ListItem>1</asp:ListItem>
                                          <asp:ListItem>2</asp:ListItem>
                                          <asp:ListItem>3</asp:ListItem>
                                          <asp:ListItem>4</asp:ListItem>
                                          <asp:ListItem>5</asp:ListItem>
                                      </asp:DropDownList>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Quality Comments</td>
                                  <td runat="server">
                                      <asp:TextBox ID="txtQualityComments" runat="server"  Rows="4" TextMode="MultiLine"></asp:TextBox>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Overall Score</td>
                                  <td runat="server">
                                      <asp:Label ID="lbOverallScore" runat="server" Font-Bold="True" ForeColor="Maroon"></asp:Label>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">Overall Comments</td>
                                  <td runat="server">
                                      <asp:TextBox ID="txtOverallComments" runat="server"  Rows="4" TextMode="MultiLine"></asp:TextBox>
                                  </td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">&nbsp;</td>
                                  <td runat="server">&nbsp;</td>
                              </tr>
                              <tr runat="server">
                                  <td runat="server">&nbsp;</td>
                                  <td runat="server">
                                      <asp:Button ID="btnComments" runat="server" CssClass="btn-primary btn-xxs"/>
                                  </td>
                              </tr>
                          </table>
                      </ContentTemplate><Triggers> <asp:AsyncPostBackTrigger ControlID="tcIQA1$tpIQA$GridIVRecs"  />
                             <asp:AsyncPostBackTrigger ControlID="tcIQA1$tpIQA$btnNewIV"  />
     <asp:AsyncPostBackTrigger ControlID="tcIQADetail$tpIQADETAIL1$btnDefaults"  />
                               <asp:AsyncPostBackTrigger ControlID="tcIQADetail$tpIQADETAIL1$btnSaveIVRecord"  /></Triggers></asp:UpdatePanel></ContentTemplate>
                  </ajaxToolkit:TabPanel>
                  <ajaxToolkit:TabPanel ID="tpQPM" runat="server" HeaderText="OPU">
                      <HeaderTemplate>
                          QPU
                      </HeaderTemplate>
                      <ContentTemplate>
                          <asp:Button ID="btnQPUDefaults" causesvalidation="false" runat="server" AccessKey="D"  CssClass="btn-info  btn-xxs" Text="Auto Complete" />
                          <br />
                          <br />
                          <table>
                              <tr>
                                  <td>Unit</td>
                                  <td >
                                      <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="txtUnit" ErrorMessage="Please add a unit" Font-Size="Large" ForeColor="#990000" Text="*" ValidationGroup="IQAQPU"></asp:RequiredFieldValidator>
                                  </td>
                              </tr>
                              <tr>
                                  <td>Criteria to be covered</td>
                                  <td >
                                      <asp:TextBox ID="txtCritriaCovered" runat="server" Rows="3" TextMode="MultiLine" Width="300px"></asp:TextBox>
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="txtCritriaCovered" ErrorMessage="Please state the criteria covered" Font-Size="Large" ForeColor="#990000" Text="*" ValidationGroup="IQAQPU"></asp:RequiredFieldValidator>
                                  </td>
                              </tr>
                              <tr>
                                  <td>Actions to complete</td>
                                  <td >
                                      <asp:TextBox ID="txtActiontoComplete" runat="server" Rows="3" TextMode="MultiLine" Width="300px"></asp:TextBox>
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator25" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="txtActiontoComplete" ErrorMessage="Please state the actions to complete'" Font-Size="Large" ForeColor="#990000" Text="*" ValidationGroup="IQAQPU"></asp:RequiredFieldValidator>
                                  </td>
                              </tr>
                              <tr>
                                  <td>Actions to be completed by</td>
                                  <td >
                                      <asp:DropDownList ID="ddlActionsCompBy" runat="server" AppendDataBoundItems="True" data-live-search="true" DataSourceID="DSAssessorList" DataTextField="PDM" DataValueField="ASSESSORID">
                                          <asp:ListItem>-Select-</asp:ListItem>
                                      </asp:DropDownList>
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="ddlActionsCompBy" ErrorMessage="Who was the actions completed by?" Font-Size="Large" ForeColor="#990000" Text="*" ValidationGroup="IQAQPU"></asp:RequiredFieldValidator>
                                  </td>
                              </tr>
                              <tr>
                                  <td>Actions to be completed by date</td>
                                  <td style="margin-left: 80px" >
                                      <asp:TextBox ID="txtCompletedByDate" runat="server"></asp:TextBox>
                                      <ajaxToolkit:CalendarExtender ID="txtCompletedByDate_CalendarExtender" runat="server" Enabled="True" Format="dd/MM/yyyy" TargetControlID="txtCompletedByDate">
                                      </ajaxToolkit:CalendarExtender>
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator27" runat="server" BorderStyle="Dotted" BorderWidth="1px" ControlToValidate="txtCompletedByDate" ErrorMessage="Please add the ' Completed by' date." Font-Size="Large" ForeColor="#990000" Text="*" ValidationGroup="IQAQPU"></asp:RequiredFieldValidator>
                                  </td>
                              </tr>
                              <tr>
                                  <td>&nbsp;</td>
                                  <td style="margin-left: 80px" >
                                      <br />
                                      <asp:Button ID="btnProgUp" runat="server" Text="Save" CssClass="btn-success  btn-xxs" ValidationGroup="IQAQPU" />
                                      <br />
                                      <asp:ValidationSummary ID="ValidationSummary3" runat="server" Font-Size="Medium" ForeColor="#990033" HeaderText="You must complete the following information before you can submit." ValidationGroup="IQAQPU" />
                                  </td>
                              </tr>
                          </table>
                          <br />
                          <asp:GridView ID="gvQualProgActionPlan" runat="server" AutoGenerateColumns="False" DataKeyNames="PROGID" DataSourceID="dsQualProgUpdate" CssClass="table" >
                              <Columns>
                                  <asp:CommandField ShowEditButton="True" />
                                  <asp:BoundField DataField="UNIT" HeaderText="UNIT" SortExpression="UNIT" />
                                  <asp:BoundField DataField="CRITERIA_COVERED" HeaderText="CRITERIA COVERED" SortExpression="CRITERIA_COVERED" />
                                  <asp:BoundField DataField="ACTIONS_TO_COMPLETE" HeaderText="ACTIONS TO COMPLETE" SortExpression="ACTIONS_TO_COMPLETE" />
                                  <asp:TemplateField HeaderText="ACTIONS COMPLETED BY" SortExpression="ACTIONS_COMPLETED_BY">
                                      <EditItemTemplate>
                                          <asp:DropDownList ID="ddlActionsCompBy" runat="server" AppendDataBoundItems="True" data-live-search="true" DataSourceID="DSAssessorList" DataTextField="PDM" DataValueField="ASSESSORID" SelectedValue='<%# Bind("ACTIONS_COMPLETED_BY") %>'>
                                              <asp:ListItem Value="">-Select-</asp:ListItem>
                                          </asp:DropDownList>
                                      </EditItemTemplate>
                                      <ItemTemplate>
                                          <asp:DropDownList ID="ddlActionsCompBy" runat="server" AppendDataBoundItems="True" data-live-search="true" DataSourceID="DSAssessorList" DataTextField="PDM" DataValueField="ASSESSORID" Enabled="False" SelectedValue='<%# Bind("ACTIONS_COMPLETED_BY") %>'>
                                              <asp:ListItem Value="">-Select-</asp:ListItem>
                                          </asp:DropDownList>
                                      </ItemTemplate>
                                  </asp:TemplateField>
                                  <asp:BoundField DataField="ACTIONS_COMPLETED_DATE" DataFormatString="{0:d}" HeaderText="ACTIONS COMPLETED DATE" SortExpression="ACTIONS_COMPLETED_DATE" />
                              </Columns>
                              <EmptyDataTemplate>
                                  No units have yet been added.
                              </EmptyDataTemplate>
                          </asp:GridView>
                      </ContentTemplate>
                  </ajaxToolkit:TabPanel>
                  <ajaxToolkit:TabPanel ID="tpLQuestion" runat="server" HeaderText="Learner Questionnaire">
                      <HeaderTemplate>
                          Learner Questionnaire
                      </HeaderTemplate><ContentTemplate>                     
                          <br />
  <asp:UpdatePanel ID="UpdatePanel4" runat="server">  <ContentTemplate>   
        <asp:GridView ID="gvGenQuestionnaire" runat="server" AutoGenerateColumns="False" DataSourceID="dsQuest">
            <Columns>
                <asp:BoundField DataField="QID" HeaderText="QID" InsertVisible="False" ReadOnly="True" SortExpression="QID" />
                <asp:BoundField DataField="ENTRYDATE" HeaderText="ENTRYDATE" SortExpression="ENTRYDATE" />
                <asp:BoundField DataField="IVRECORDID" HeaderText="IVRECORDID" SortExpression="IVRECORDID" />
                <asp:BoundField DataField="TRAINEEID" HeaderText="TRAINEEID" SortExpression="TRAINEEID" />
                <asp:BoundField DataField="POT" HeaderText="POT" SortExpression="POT" />
                <asp:CommandField ButtonType="Image" SelectImageUrl="~/images/pdf.png" SelectText="Output to PDF" ShowSelectButton="True" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="dsQuest" runat="server" ConnectionString="<%$ ConnectionStrings:IrisConnectionString %>" SelectCommand="SELECT * FROM [I_IV_LEARNER_QUESTIONNAIRE] WHERE (([POT] = @POT) AND ([TRAINEEID] = @TRAINEEID) AND ([IVRECORDID] = @IVRECORDID))">
            <SelectParameters>
                <asp:QueryStringParameter Name="POT" QueryStringField="POT" Type="Int32" />
                <asp:QueryStringParameter Name="TRAINEEID" QueryStringField="TRAINEEID" Type="String" />
                <asp:SessionParameter Name="IVRECORDID" SessionField="IVRECORDID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
                        <br />
    <asp:Button CssClass="btn-danger btn-block btn-xs" ID="btnViewGenQuest" runat="server" data-toggle="modal" causesvalidation="false" Text="Not yet completed - Click to start Questionnaire" data-target="#modalQuestionnaire" ></asp:Button>
                    </ContentTemplate><Triggers>
 <asp:AsyncPostBackTrigger ControlID="tcIQA1$tpIQA$GridIVRecs"  />
                             <asp:AsyncPostBackTrigger ControlID="tcIQADetail$tpIQADETAIL1$btnDefaults"  />
                               <asp:AsyncPostBackTrigger ControlID="tcIQADetail$tpIQADETAIL1$btnSaveIVRecord"  />

                              <asp:AsyncPostBackTrigger ControlID="btnSaveQuestionnaire"  />


                        
 </Triggers> </asp:UpdatePanel></ContentTemplate>
                  </ajaxToolkit:TabPanel>
                  <ajaxToolkit:TabPanel ID="tpwQuestion" runat="server" HeaderText="Witness Questionanaire">
                      <HeaderTemplate>
                          Witness Questionnaire
                      </HeaderTemplate>
                      <ContentTemplate>
     
                          <asp:UpdatePanel ID="UpdatePanel15" runat="server">
              

                    <ContentTemplate>

                        <asp:GridView ID="gvWitQuest" runat="server"  AutoGenerateColumns="False" DataSourceID="dswQuest">
            <Columns>
                <asp:BoundField DataField="WQID" HeaderText="QID" InsertVisible="False" ReadOnly="True" SortExpression="QID" />
                <asp:BoundField DataField="ENTRYDATE" HeaderText="ENTRYDATE" SortExpression="ENTRYDATE" />
                <asp:BoundField DataField="IVRECORDID" HeaderText="IVRECORDID" SortExpression="IVRECORDID" />
                <asp:BoundField DataField="TRAINEEID" HeaderText="TRAINEEID" SortExpression="TRAINEEID" />
                <asp:BoundField DataField="POT" HeaderText="POT" SortExpression="POT" />
                <asp:CommandField ButtonType="Image" SelectImageUrl="~/images/pdf.png" SelectText="Output to PDF" ShowSelectButton="True" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="dswQuest" runat="server" ConnectionString="<%$ ConnectionStrings:IrisConnectionString %>" SelectCommand="SELECT * FROM [I_IV_WITNESS_QUESTIONNAIRE] WHERE (([POT] = @POT) AND ([TRAINEEID] = @TRAINEEID) AND ([IVRECORDID] = @IVRECORDID))">
            <SelectParameters>
                <asp:QueryStringParameter Name="POT" QueryStringField="POT" Type="Int32" />
                <asp:QueryStringParameter Name="TRAINEEID" QueryStringField="TRAINEEID" Type="String" />
                <asp:SessionParameter Name="IVRECORDID" SessionField="IVRECORDID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
                        <br />
    <asp:Button CssClass="btn-primary btn-block" ID="Button7"  runat="server" data-toggle="modal" Text="Open Witness Questionnaire" data-target="#modalwQuestionnaire" CausesValidation="False"></asp:Button>
    </ContentTemplate>
                </asp:UpdatePanel>












                      </ContentTemplate>
                  </ajaxToolkit:TabPanel>
                  <ajaxToolkit:TabPanel ID="tpSampleStrategy" runat="server" HeaderText="Sample Strategy">
                      <HeaderTemplate>
                          Sample Strategy
                      </HeaderTemplate>
                      <ContentTemplate>
                       <asp:UpdatePanel ID="UpdatePanel9" runat="server">
                            <ContentTemplate>
                                    <table id="tbl_SampleStrategy" runat="server" Class="table-condensed"  visible ="false">
                                        <tr>
                                            <td style="height: 20px">SchemeUnitID</td>
                                            <td class="text-center"  style="height: 20px">EP</td>
                                            <td class="text-center" style="height: 20px">EPS</td>
                                            <td class="text-center" style="height: 20px">O</td>
                                            <td class="text-center" style="height: 20px">ECH</td>
                                            <td class="text-center" style="height: 20px">PD</td>
                                            <td class="text-center" style="height: 20px">QC</td>
                                            <td class="text-center" style="height: 20px">QW</td>
                                            <td class="text-center" style="height: 20px">EWT</td>
                                            <td class="text-center" style="height: 20px">EWA</td>
                                            <td class="text-center" style="height: 20px">RPL</td>
                                            <td style="height: 20px" class="text-center">APA</td>
                                            <td style="height: 20px" class="text-center">APL</td>
                                            <td style="height: 20px" class="text-center">INT</td>
                                            <td style="height: 20px" class="text-center">EXPWIT</td>
                                            <td style="width: 130px; height: 20px;" class="text-center">REFERRED</td>
                                        </tr>
                                        <tr>
                                            <td class="auto-style2"><asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:IRISConnectionString %>" SelectCommand="GET_AVAILABLE_QUALSCHEME_UNITS" SelectCommandType="StoredProcedure">
                                              <SelectParameters>
                                                  <asp:QueryStringParameter Name="TRAINEEID" QueryStringField="TRAINEEID" />
                                                  <asp:QueryStringParameter DefaultValue="" Name="POT" QueryStringField="POT" />
                                              </SelectParameters>
                                              </asp:SqlDataSource>
                                                <asp:DropDownList ID="ddlQSchemeID" runat="server" AppendDataBoundItems="True"  DataSourceID="DSUnitAvailable" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                                                    <asp:ListItem Value="0">-Select-</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td class="auto-style6" style="text-align: center">
                                                <asp:CheckBox ID="chkEP" runat="server"  />
                                            </td>
                                            <td class="auto-style13" style="text-align: center">
                                                <asp:CheckBox ID="chkEPS" runat="server" />
                                            </td>
                                            <td class="auto-style7" style="text-align: center">
                                                <asp:CheckBox ID="chkO" runat="server"/>
                                            </td>
                                            <td class="auto-style8" style="text-align: center">
                                                <asp:CheckBox ID="chkECH" runat="server"/>
                                            </td>
                                            <td class="auto-style9" style="text-align: center">
                                                <asp:CheckBox ID="chkPD" runat="server"/>
                                            </td>
                                            <td class="auto-style10" style="text-align: center">
                                                <asp:CheckBox ID="chkQC" runat="server"/>
                                            </td>
                                            <td class="auto-style14" style="text-align: center">
                                                <asp:CheckBox ID="chkQW" runat="server"/>
                                            </td>
                                            <td class="auto-style4" style="text-align: center">
                                                <asp:CheckBox ID="chkEWT" runat="server"/>
                                            </td>
                                            <td class="auto-style12" style="text-align: center">
                                                <asp:CheckBox ID="chkEWA" runat="server"/>
                                            </td>
                                            <td class="auto-style3" style="text-align: center">
                                                <asp:CheckBox ID="chkRPL" runat="server"/>
                                            </td>
                                            <td style="text-align: center">
                                                <asp:CheckBox ID="chkAPA" runat="server"/>
                                            </td>
                                            <td style="text-align: center">
                                                <asp:CheckBox ID="chkAPL" runat="server"/>
                                            </td>
                                            <td style="text-align: center">
                                                <asp:CheckBox ID="chkINT" runat="server"/>
                                            </td>
                                            <td style="text-align: center">
                                                <asp:CheckBox ID="chkEXPWIT" runat="server"/>
                                            </td>
                                            <td style="text-align: center;">
                                                <asp:CheckBox ID="chkREFFERED" runat="server"/>
                                            </td>
                                        </tr>
                                    </table>
                       <asp:Button ID="btnAddSampling" runat="server" OnClick="btnAddSampling_Click" CssClass="btn-success PadBtm" Text="Add Sample " />
                                    <div id="dv_SampleStrategy" runat="server" visible ="false" class="pull-right">
                                        <asp:Button ID="btnInsertScheme" runat="server" CssClass="btn-success PadBtm" Text="Save Sampling" causesvalidation="false" />
                                        <asp:Button ID="btnIQASamplingReset" runat="server" CssClass="btn-default PadBtm"  Text="Reset Sampling" causesvalidation="false" />
                                        <br />
                                    </div>
                                       <asp:Label ID="Label6" runat="server" Text="" style="font-weight: 700; color: #77B300"></asp:Label>
           
                                                
                                <br />

                                <asp:Label ID="lbSampleMesage" runat="server" Text=""></asp:Label>
                                    <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:IrisConnectionString %>" SelectCommand="GET_AVAILABLE_QUALSCHEME_UNITS_NEW" SelectCommandType="StoredProcedure">
                                        <SelectParameters>
                                            <asp:QueryStringParameter Name="TRAINEEID" QueryStringField="TRAINEEID" Type="String" />
                                            <asp:QueryStringParameter Name="POT" QueryStringField="POT" Type="Int32" />
                                            <asp:SessionParameter Name="ivrecordID" SessionField="IVRECORDID" Type="Int32" />
                                        </SelectParameters>
                                    </asp:SqlDataSource>
                                    <asp:GridView ID="gvShowSampling" Class="table table-hover table-condensed table-responsive" runat="server"  AutoGenerateColumns="False" DataKeyNames="IVSAMPLINGID" DataSourceID="DSIQASamplingStrategy">
                                        <Columns>
               <%--                             <asp:BoundField DataField="IVSAMPLINGID" HeaderText="IVSAMPLINGID" InsertVisible="False" ReadOnly="True" SortExpression="IVSAMPLINGID" />
                                            <asp:BoundField DataField="IVRECORDID" HeaderText="IVRECORDID" SortExpression="IVRECORDID" />--%>
                                            <asp:BoundField DataField="QUALSCHEMEUNIT" HeaderText="UNIT"  SortExpression="QUALSCHEMEUNIT" />
                                            <asp:TemplateField HeaderText="EP"  SortExpression="EP">
                                 
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="gvckEP" runat="server"  Checked='<%# Bind("EP") %>' Enabled="False"  />
                                                </ItemTemplate>
                                                <ItemStyle ForeColor="#83BA25" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="EPS" SortExpression="EPS">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckEPS" runat="server" Checked='<%# Bind("EPS") %>' Enabled="False"  />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                                <asp:TemplateField HeaderText="O" SortExpression="O">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckO" runat="server" Checked='<%# Bind("O") %>' Enabled="False" />
                                                </ItemTemplate>
                                            </asp:TemplateField>


                                                    <asp:TemplateField HeaderText="ECH" SortExpression="ECH">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckECH" runat="server" Checked='<%# Bind("ECH")%>' Enabled="False" />
                                                </ItemTemplate>
                                                        <ItemStyle ForeColor="#83BA25" />
                                            </asp:TemplateField>

                                                     <asp:TemplateField HeaderText="PD" SortExpression="PD">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckPD" runat="server" Checked='<%# Bind("PD")%>' Enabled="False" />
                                                </ItemTemplate>
                                            </asp:TemplateField>


                                                      <asp:TemplateField HeaderText="QC" SortExpression="QC">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckQC" runat="server" Checked='<%# Bind("QC")%>' Enabled="False" />
                                                </ItemTemplate>
                                            </asp:TemplateField>


                                                                 <asp:TemplateField HeaderText="QW" SortExpression="QW">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckQW" runat="server" Checked='<%# Bind("QW")%>' Enabled="False" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                      

                                                                       <asp:TemplateField HeaderText="EWT" SortExpression="EWT">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckEWT" runat="server" Checked='<%# Bind("EWT")%>' Enabled="False" />
                                                </ItemTemplate>
                                            </asp:TemplateField>



                                                                         <asp:TemplateField HeaderText="EWA" SortExpression="EWA">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckEWA" runat="server" Checked='<%# Bind("EWA")%>' Enabled="False" />
                                                </ItemTemplate>
                                            </asp:TemplateField>


                                                                               <asp:TemplateField HeaderText="APL" SortExpression="APL">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckAPL" runat="server" Checked='<%# Bind("APL")%>' Enabled="False" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                    

                                                                                        <asp:TemplateField HeaderText="APA" SortExpression="APA">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckAPA" runat="server" Checked='<%# Bind("APA")%>' Enabled="False" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                    
                                        
                                                                                             <asp:TemplateField HeaderText="INT" SortExpression="INT">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckINT" runat="server" Checked='<%# Bind("INT")%>' Enabled="False" />
                                                </ItemTemplate>
                                            </asp:TemplateField>


                                                                                            <asp:TemplateField HeaderText="EXPWIT" SortExpression="EXPWIT">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckEXPWIT" runat="server" Checked='<%# Bind("EXPWIT")%>' Enabled="False" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                
                                                                                           <asp:TemplateField HeaderText="REFERRED" SortExpression="REFERRED">
                                                    <ItemTemplate>
                                                <asp:CheckBox ID="gvckREFERRED" runat="server" Checked='<%# Bind("REFERRED")%>' Enabled="False" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                 
                                       
                                        </Columns>
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <RowStyle ForeColor="#83BA25" VerticalAlign="Middle" />
                                    </asp:GridView>      </ContentTemplate></asp:UpdatePanel>
                      </ContentTemplate>
                  </ajaxToolkit:TabPanel>
                  <ajaxToolkit:TabPanel ID="tpClaimInfo" runat="server" HeaderText="Claim Info ">
                      <HeaderTemplate>
                          Claim Information
                      </HeaderTemplate>
                      <ContentTemplate>
                            <asp:UpdatePanel ID="UpdatePanel11" runat="server"><ContentTemplate>
        <asp:Label ID="lbClaimText" runat="server" Text=""></asp:Label>
        <br />
    <div id="dvClaim" runat="server" visible ="false">

        <table id="tblUnitClaim" runat="server">
            <tr>
                <td>
                    <asp:DropDownList ID="ddlUNIT01ID1" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT02ID1" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT03ID1" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT04ID1" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT05ID1" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT06ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT07ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:DropDownList ID="ddlUNIT08ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT09ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT10ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT11ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT12ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT13ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT14ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:DropDownList ID="ddlUNIT15ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT16ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT17ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT18ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT19ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT20ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlUNIT21ID0" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSUnitAvailable0" DataTextField="QUALSCHEMEUNIT" DataValueField="QUALSCHEMEUNITID">
                        <asp:ListItem Selected="True">-</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>
        <br />
        <table id="tblUnitClaimPerson" runat="server">
            <tr>
                <td>Date Claimed</td>
                <td>
                    <asp:TextBox ID="txtDateClaimed" runat="server" Enabled="False" ></asp:TextBox>
                    <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" Enabled="True" Format="dd/MM/yyyy"  TargetControlID="txtDateClaimed">
                    </ajaxToolkit:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td>Claimed by:</td>
                <td>
                    <asp:DropDownList ID="ddlClaimedby" runat="server" AppendDataBoundItems="True" CssClass="selectpickedr" data-live-search="true" DataSourceID="DSListStaff" DataTextField="STAFFNAME" DataValueField="STAFFID" >
                        <asp:ListItem Selected="True">-Select-</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Date Received</td>
                <td>
                    <asp:TextBox ID="txtDateReceived" runat="server" ></asp:TextBox>
                    <ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" Enabled="True" Format="dd/MM/yyyy"  TargetControlID="txtDateReceived">
                    </ajaxToolkit:CalendarExtender>
                </td>
            </tr>
        </table>
        <br />
        <asp:Button ID="btnUPClaim" runat="server" CssClass="btn-primary  btn-xxs" Text="" />
        <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:IRISConnectionString %>" SelectCommand="GET_STAFF_LIST" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
                    <asp:SqlDataSource ID="DSUnitAvailable0" runat="server" ConnectionString="<%$ ConnectionStrings:IRISConnectionString %>" SelectCommand="GET_AVAILABLE_QUALSCHEME_UNITS" SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="TRAINEEID" QueryStringField="TRAINEEID" />
                            <asp:QueryStringParameter DefaultValue="" Name="POT" QueryStringField="POT" />
                        </SelectParameters>
                    </asp:SqlDataSource>
    </div><br />
        <asp:Button ID="btnShowClaim" OnClick="btnShowClaim_Click" CssClass="btn-primary  btn-xxs" runat="server" Text="Add Claim" />
                          
                          
                      </ContentTemplate> <Triggers>
 <asp:AsyncPostBackTrigger ControlID="tcIQA1$tpIQA$GridIVRecs"  EventName="SelectedIndexChanged" />
                             <asp:AsyncPostBackTrigger ControlID="tcIQA1$tpIQA$btnNewIV"  />
     <asp:AsyncPostBackTrigger ControlID="tcIQADetail$tpIQADETAIL1$btnDefaults"  />
                               <asp:AsyncPostBackTrigger ControlID="tcIQADetail$tpIQADETAIL1$btnSaveIVRecord"  />
               
 </Triggers>    </asp:UpdatePanel></ContentTemplate>
                  </ajaxToolkit:TabPanel>
                  <ajaxToolkit:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
                      <HeaderTemplate>
                          Document Store
                      </HeaderTemplate><ContentTemplate><div>
    
        Document Downloads<br />
        <br />
        Click on the icons to download<br />
        <table >
            <tr>
                <td>Witness Questionnaire</td>
                <td>
                    <img alt="" src="images/pdf.png" /></td>
            </tr>
            <tr>
                <td>Learner Quaestionnaire</td>
                <td>
                    <img alt="" " src="images/pdf.png" /></td>
            </tr>
            <tr>
                <td>Quality Progress Update - Action Plan</td>
                <td>
                    <img alt=""  src="images/pdf.png" /></td>
            </tr>
            <tr>
                <td>Full IQA Report</td>
                <td>
                    <img alt=""  src="images/pdf.png" /></td>
            </tr>
        </table>
    
    </div></ContentTemplate>
                  </ajaxToolkit:TabPanel>
       
              </ajaxToolkit:TabContainer>

Open in new window

EdAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CodeCruiserCommented:
See if using "display=none" instead of setting visibility off makes it work.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
AJAX

From novice to tech pro — start learning today.