Solved

Update Panel Update error

Posted on 2011-03-09
4
437 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

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 …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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