The extender cannot reside in a different UpdatePanel than the control that it extends asp.net

I get this error "The extender cannot be in a different UpdatePanel than the control that it extends." what could be the reason and how to solve this problem.

Many thanks

+6
source share
7 answers

You use the AJAX ToolKit Extender Control to extend the functionality of one of your ASP.NET controls. You placed the Extender control in a different UpdatePanel than the one in which the extended control resides.

Extender and Extended controls must be in the same UpdatePanel to avoid this exception.

+6
source

Extender and Extended controls should be in the same UpdatePanel to avoid an exception, this solved my problem.

I had an optional UpdatePanel that was giving this error, so I just had to remove the extra update panel lines of my aspx webpage code.

+2
source

What he really says is that you have an extension control related to a control located in another update panel. This means that the expander cannot act properly on the control that it expands. You will need to move your expander so that it is in the same update panel as the main control

+1
source

Hi, I decided to solve the problem myself. The problem occurred when the target control identifier of the extender control is different from the control spread inside the update panel. I have long solved this problem back and answer now.

0
source

In my case, I used the button ... outside the update panel, as shown below.

  <asp:Button ID="btnClub" runat="server" Text="Club" OnClick="btnClub_Click" /> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> 

I just solved this by setting <asp:Button ID="btnClub" runat="server" Text="Club" OnClick="btnClub_Click" /> inside the update panel

  <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Button ID="btnClub" runat="server" Text="Club" OnClick="btnClub_Click" /> Here you make your panel code </ContentTemplate> </asp:UpdatePanel> 
0
source

Reason: your iD incorrectly matches Ex: text field identifier or a dropdown list mismatch in the calendar expander or RequiredFieldValidator

Example: The value of the hearing identifier and the identifier of the control object must match .....

0
source

Check controls with expanders that have the same identifier, especially if you copy them to a different form

0
source

Source: https://habr.com/ru/post/889089/


All Articles