Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An extender can't be in a different UpdatePanel than the control it extends asp.net

Tags:

asp.net

I am getting this error "An extender can't be in a different UpdatePanel than the control it extends". what could be the reason and how to tackle this problem.

like image 664
Mohan Sharma Avatar asked May 26 '11 09:05

Mohan Sharma


People also ask

Can we use multiple UpdatePanel in asp net?

This tutorial introduced the concept of using multiple UpdatePanel controls on a page. When UpdatePanel controls are not nested you can update each panel independently by setting the UpdateMode property to Conditional. (The default value of the UpdateMode property is Always.

How does UpdatePanel work in asp net?

UpdatePanel controls are a central part of AJAX functionality in ASP.NET. They are used with the ScriptManager control to enable partial-page rendering. Partial-page rendering reduces the need for synchronous postbacks and complete page updates when only part of the page has to be updated.


2 Answers

You are using an AJAX ToolKit Extender Control to extend the functionality of one of your ASP.NET Controls. You have placed the Extender Control in a different UpdatePanel than the one the Extended Control resides in.

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

like image 180
Akram Shahda Avatar answered Oct 09 '22 23:10

Akram Shahda


Both Extender and Extended controls must reside in the same UpdatePanel to avoid the exception, this solved my problem.

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

like image 21
alejandro Avatar answered Oct 09 '22 22:10

alejandro