Click here to Skip to main content
15,889,600 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
My source code as follows

asp:UpdatePanel ID="Updatepanel1" runat="server">
<contenttemplate>

XML
<ajaxToolkit:TabContainer ID="waitlistent" runat="server" CssClass="MyTabStyle" ActiveTabIndex = "0"
            OnActiveTabChanged="waitlistent_activetabchanged" AutoPostBack="true">
              <ajaxToolkit:TabPanel ID="waitlistentry" BackColor ="RosyBrown" runat="server">
           <HeaderTemplate>Waitlist Entry Screen
              </HeaderTemplate>

               <ContentTemplate>

XML
<asp:Panel ID="entrypn" runat="server" BackColor="BurlyWood">
           <table style="width: 835px"><tr><td class="style1">


XML
<asp:Label id="lblwecrs" Text="Course Name" runat="server" Width="32%" Font-Bold="True"
                    ForeColor="Blue">
                    </asp:Label>


XML
</td>
                    <td style="height: 28px"><asp:DropDownList id="ddlcoursename" runat="server" Width="28%"
                           onselectedindexchanged="ddlcoursename_SelectedIndexChanged"
                           AutoPostBack="True"></asp:DropDownList><br /><asp:RequiredFieldValidator ID="RequiredFieldValidator3"
                    InitialValue="--Select Course--" runat="server" ControlToValidate="DdlCourseName"
                        ErrorMessage="Select the Course" Width="51%"></asp:RequiredFieldValidator></td></tr><tr><td class="style2"><br /><asp:Label id="Label5" Text="Non available dates" runat="server" Width="44%" Font-Bold="True"
                    ForeColor="Blue"></asp:Label></td><td style="height: 28px"><asp:DropDownList id="ddlbatchdate" runat="server" Width="28%"
                           AutoPostBack="True" onselectedindexchanged="ddlbatchdate_SelectedIndexChanged"></asp:DropDownList></td></tr><%--<tr>--%><td align = "center" class="style1"><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
                           <asp:Button ID="Btnentry" runat="server" OnClick="Btnentry_Click" Text="Submit" Height="24px" Width="88px" /></td><%-- </tr>--%></table></asp:Panel>



              </ContentTemplate>

           </ajaxToolkit:TabPanel>


XML
<ajaxToolkit:TabPanel ID="waitlistconf" runat="server" BorderColor="Black" BackColor="Coral">
                 <HeaderTemplate>Waitlist Confirmation screen
                 </HeaderTemplate>

                    <ContentTemplate>



XML
<asp:Panel ID="entryconf" runat="server" BackColor="BurlyWood">
                     <table style="width: 835px">
                      <tr>
                    <td style="width: 510px">
                    <asp:Label id="lblwccrs" Text="Course Name" runat="server" Width="32%" Font-Bold="True"
                    ForeColor="Blue">
                    </asp:Label>



XML
</td>
<td style="height: 28px">
        <asp:DropDownList
            id="ddlcrsname" runat="server" Width="28%" AutoPostBack="True"
       onselectedindexchanged="ddlcrsname_SelectedIndexChanged">
       </asp:DropDownList><br /><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
InitialValue="--Select Course--" runat="server" ControlToValidate="ddlcrsname"
    ErrorMessage="Select the Course" Width="155px"></asp:RequiredFieldValidator></td></tr><tr><td class="style2" style="width: 510px"><br /><asp:Label id="Label4" Text="Available dates" runat="server" Width="49%" Font-Bold="True"
ForeColor="Blue"></asp:Label></td><td style="height: 28px"><asp:DropDownList id="ddlbthdate" runat="server" Width="28%"
       AutoPostBack="True"></asp:DropDownList></td></tr><tr><td align = "center" class="style1" style="width: 510px"><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <asp:Button ID="Btnconfirmation" runat="server" OnClick="Btnconfirmation_Click" Text="Submit" Height="24px" Width="88px" /></td></tr></table></asp:Panel>








XML
</ContentTemplate>
          <Triggers>
              <asp:PostBackTrigger ControlID="Btnentry"/>
          </Triggers>
     </asp:UpdatePanel>



When i run the above code shows error as follows
A control with ID 'Btnentry' could not be found for the trigger in UpdatePanel 'Updatepanel1'.

please help me.
Posted
Comments
Abhipal Singh 17-Jun-15 3:29am    
Please provide your entire webpage code.. The one you gave contains a lot of missing tags
Sinisa Hajnal 17-Jun-15 5:02am    
AjaxToolkit and UpdatePanel don't work well together. You might be able to work something out, but you'll have to jump through some hoops. Better find a solution that either skips UpdatePanel or TabContainer (find jQuery / other framework client side solution).
Thanks7872 19-Jun-15 8:01am    
And which part of this error is not clear to you? It clearly states that a control with ID 'Btnentry' could not be found. It states what it means.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900