This is a migrated thread and some comments may be shown as answers.

Error on control

2 Answers 48 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Susan
Top achievements
Rank 1
Susan asked on 23 Feb 2010, 02:11 PM
I have 3 image buttons and a label. when i click on 2 of the 3 image buttons, the label gets updated with the appropriate text. when i click on the other, i get an error. they are exactly the same (from what i can see). here is the code (snippits):

When you click on the 2nd or 3rd image (ibCourse16 or ibCourse20), it works fine. When you click on the first (ibCourse17) you get an error.

You can also go to www.americance.com. From the home page in the 'Electrician' area, choose 'North Carolina' and any of the license types. Click the red 'Next'. FIRST: click on the middle image (NEC Grounding and Bonding Part I). The text at the bottom of the page changes. Click the third image (NEC Grounding and Bonding Part 2) - same result..all is ok. Click the first image. The text does not change and you see the 'Error on Page' at the bottom of the browser.

If I take this out of AJAX for course 17, I don't get an error, so it has something to do with that. However, it works for image 16 and 20.
 <telerik:AjaxUpdatedControl ControlID="CourseCatalogDesc" />

 


I'm stuck....
Thanks,
Susan

 

 

<table cellpadding=0 cellspacing=0 id="tblCourse17" width="240px" bgcolor="#E9EAEC" runat="server">

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td class="NormalBold" align="center" style="padding-bottom:5px; padding-top:5px">NEC 2008 Fundamentals</td></tr>

 

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td class="Normal" align="center">$40.00 / 4 Hour Course</td></tr>

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td height="7px"></td></tr>

 

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td align="center">

 

 

 

 

 

            <asp:ImageButton ID="ibCourse17" ImageUrl="images/bookimages/nc2008nectextbookcover.jpg" runat="server" /></td></tr>

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td height="5px"></td></tr>

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td align="center" style="padding-bottom:5px">

 

 

 

 

 

            <asp:button ID="btnCourse17" Text="Add to Cart" runat="Server" /></td></tr>

 

 

 

 

 

 

 

</table>

 

 

 

 

 

<table cellpadding=0 cellspacing=0 id="tblCourse16" width="240px" runat="server">

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td class="NormalBold" align="center" style="padding-bottom:5px; padding-top:5px">NEC Grounding and Bonding</td></tr>

 

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td class="Normal" align="center">$40.00 / 4 Hour Course</td></tr>

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td height="7px"></td></tr>

 

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td align="center">

 

 

 

 

 

            <asp:ImageButton ID="ibCourse16" ImageUrl="images/bookimages/ncgroundingbonding1.jpg" runat="server" /></td></tr>

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td height="5px"></td></tr>

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td align="center" style="padding-bottom:5px">

 

 

 

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td align="center" style="padding-bottom:5px">

 

 

 

 

 

            <asp:button ID="btnCourse16" Text="Add to Cart" runat="Server" /></td></tr>

 

 

 

 

 

 

 

</table>

 

 

 

 

 

<table cellpadding=0 cellspacing=0 id="tblCourse20" width="240px" runat="Server">

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td class="NormalBold" align="center" style="padding-bottom:5px; padding-top:5px">NEC Grounding and Bonding 2</td></tr>

 

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td class="Normal" align="center">$40.00 / 4 Hour Course</td></tr>

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td height="7px"></td></tr>

 

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td align="center">

 

 

 

 

 

            <asp:ImageButton ID="ibCourse20" ImageUrl="images/bookimages/ncgroundingbonding2.jpg" runat="server" /></td></tr>

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td height="5px"></td></tr>

 

 

 

 

 

    <tr>

 

 

 

 

 

        <td align="center" style="padding-bottom:5px">

 

 

 

 

 

            <asp:button ID="btnCourse20" Text="Add to Cart" runat="Server" /></td></tr>

 

 

 

 

 

 

</table>

 

 

 


THE LABEL
<

 

tr>

 

 

<td valign=top>

 

 

 

<asp:Label ID="CourseCatalogDesc" Runat="server" CssClass="Normal" /> </td></tr>

AJAX CODE

 

 

 

<telerik:AjaxSetting AjaxControlID="ibCourse16">

 

 

 

    <UpdatedControls>

 

 

 

        <telerik:AjaxUpdatedControl ControlID="CourseCatalogDesc" />

 

 

 

        <telerik:AjaxUpdatedControl ControlID="tblCourse17"/>

 

 

 

        <telerik:AjaxUpdatedControl ControlID="tblCourse16"/>

 

 

 

        <telerik:AjaxUpdatedControl ControlID="tblCourse20"/>

 

 

 

    </UpdatedControls>

 

 

 

 </telerik:AjaxSetting>

 

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="ibCourse20">

 

 

 

     <UpdatedControls>

 

 

 

         <telerik:AjaxUpdatedControl ControlID="CourseCatalogDesc" />

 

 

 

         <telerik:AjaxUpdatedControl ControlID="tblCourse17"/>

 

 

 

         <telerik:AjaxUpdatedControl ControlID="tblCourse16"/>

 

 

 

         <telerik:AjaxUpdatedControl ControlID="tblCourse20"/>

 

 

 

     </UpdatedControls>

 

 

 

 </telerik:AjaxSetting>

 

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="ibCourse17">

 

 

 

     <UpdatedControls>

 

 

 

         <telerik:AjaxUpdatedControl ControlID="CourseCatalogDesc" />

 

 

 

         <telerik:AjaxUpdatedControl ControlID="tblCourse16"/>

 

 

 

         <telerik:AjaxUpdatedControl ControlID="tblCourse20"/>

 

 

 

         <telerik:AjaxUpdatedControl ControlID="tblCourse17"/>

 

 

 

     </UpdatedControls>

 

 

 

 </telerik:AjaxSetting>

 

2 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 25 Feb 2010, 02:34 PM
Hi Susan,

I checked your code and I can confirm you have properly set the ajax setting. Furthermore I prepared a runnable sample using the provided code which works as expected on my side. Can you check it out and let me know if I missed something from your logic out?

Regards,
Iana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Susan
Top achievements
Rank 1
answered on 27 Feb 2010, 02:33 AM
we actually figured this out. Don't know why, but the text itself (which is in html format), which was trying to display in the lable, was causing the error. When we replaced the text, the error went away.

Thanks,
Susan
Tags
Ajax
Asked by
Susan
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Susan
Top achievements
Rank 1
Share this question
or