Solved

Update Panel Update error

Posted on 2011-03-09
4
431 Views
Last Modified: 2012-05-11
I have the following update update panel and textbox control in a asp.net 4.0 webform. when I try to update the updatepanel I get an error "An extender can't be in a different UpdatePanel than the control it extends." How can I solve the problem? the error occurs when I issue the follwoing command.

 up2.Update();

<asp:UpdatePanel ID="up2" runat="server" UpdateMode="Conditional"><ContentTemplate><asp:TextBox ID="txtName" runat="server" Height="22px" Width="346px" ClientIDMode="Static"></asp:TextBox></ContentTemplate></asp:UpdatePanel>

ayha
0
Comment
Question by:ayha1999
  • 2
  • 2
4 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 35083466
Well the error would suggest you have an extender somewhere in your page that is associated with one of the controls in that update panel.
0
 
LVL 7

Author Comment

by:ayha1999
ID: 35083530
there is one requiredfieldvalidator associated with txtName.

<asp:RequiredFieldValidator ID="rf2" runat="server"
<asp:RequiredFieldValidator ID="rf1" runat="server"
                            ControlToValidate="txtName" Display="None"
                            ErrorMessage="Name is required."></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="rf1_ValidatorCalloutExtender"
                            runat="server" Enabled="True" TargetControlID="rf1">
                        </asp:ValidatorCalloutExtender>
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 250 total points
ID: 35083562
In that case those RequiredFieldValidators and the ValidatorCalloutExtender need to be inside the UpdatePanel.
0
 
LVL 7

Author Closing Comment

by:ayha1999
ID: 35084380
thank you so much for the help.

ayha
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

806 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question