Error on control

3 posts, 0 answers
  1. Susan
    Susan avatar
    137 posts
    Member since:
    Jul 2007

    Posted 23 Feb 2010 Link to this post

    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. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 25 Feb 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Susan
    Susan avatar
    137 posts
    Member since:
    Jul 2007

    Posted 26 Feb 2010 Link to this post

    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
Back to Top