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

Resource Not Found when using Ajax (asp:UpdatePanel and RadAjaxManager)

1 Answer 51 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Nicole
Top achievements
Rank 1
Nicole asked on 16 Oct 2013, 07:07 AM
Hi,

I have a very weird error. Im getting 404 resource not found whenever I'm using AJAX in my page. When I comment this out, I don't encounter it.

My page has a user control which is as follows:
<div id="divMakeApptCustInfo" class="box" style="border: 0" runat="server">
   <asp:UpdatePanel ID="updPnlMakeApptCustInfo" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
         <table style="margin-left:20px" runat="server">
                <tr class="datarow">
                    <td class="label-reschedule" style="padding-bottom: 20px;">
                        <asp:Label ID="Label12" runat="server" Text="ID Number"></asp:Label>
                         <span class="sign">*</span>
                    </td>
                    
                    <td style="padding-bottom: 20px;">
                       
                        <asp:TextBox runat="server" ID="txtIdNo" Width="250px" OnTextChanged="txtIdNo_OnChange" AutoPostBack="true"></asp:TextBox>
                      </td>
                </tr>
                 <tr class="datarow">
                    <td class="label-reschedule">
                        <asp:Label ID="Label15" runat="server" Text="Name"></asp:Label>
                        <span class="sign">*</span>
                    </td>
                    <td style="padding-bottom: 20px;">
                        <asp:TextBox runat="server" ID="txtCustomerName" MaxLength="66" Width="250px"></asp:TextBox>
                     
                    </td>
                </tr>
                <tr class="datarow">
                   <td class="label-reschedule">Enter Verification Code <span class="sign">* </span> </td>
                   <td id="liCapchaUC" style="padding-top: 3px;">
                        <asp:UpdatePanel ID="updPnlCaptchaUC" runat="server" UpdateMode="Conditional">
                              <ContentTemplate>
                                <telerik:RadCaptcha ID="rdcaptcha" CaptchaAudioLinkButtonText=""
                                    runat="server" ValidationGroup="submitGroupMakeAppt" InvisibleTextBoxLabel="true" EnableRefreshImage="true" ValidatedTextBoxID="txtCaptchaUC"
                                    CaptchaLinkButtonText="" Display="Dynamic" ProtectionMode="Captcha" Height="100px">
                                    <CaptchaImage Width="280" Height="50" EnableCaptchaAudio="true" ImageCssClass="imgcss"
                                        RenderImageOnly="True" TextColor="black" BackgroundNoise="None" LineNoise="None" FontWarp="None" />
                                </telerik:RadCaptcha>
                                </ContentTemplate>
                        </asp:UpdatePanel>
                        <asp:TextBox ID="txtCaptchaUC" runat="server" ToolTip="Please enter the upper code" tabindex="2"
                            MaxLength="5" AutoComplete="off" CssClass="rcTextBoxClass"></asp:TextBox>
                    </td>
                </tr>
            </table>
   </ContentTemplate>
</asp:UpdatePanel>
  
    </div>



My requirements is to populate the customer name based on the entered Id's ontextchange event. Everything is ok on the first page_load. The page has a Continue button and when I click Continue, I proceed to the next page. On the next page, there's a back button. When I click the back button, then enter the Id again, I get the resource not found error. I have also tried using telerik: RadAjaxManagerProxy instead of asp:UpdatePanels, as shown below:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server" >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="txtIdNo">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="txtCustomerName"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="txtCustomerName">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="txtCustomerName"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

but i'm also encountering the same error. Please advise why this is happening. Any help is greatly appreciated! In my back button, I'm just calling Server.Transfer to my main page.


Thanks!

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 18 Oct 2013, 01:50 PM
Hi Nicole,

Since the provided code snippet is working as expected without any issues, we will need additional information about your exact scenario in order for us to be able to assist you.

Additionally, please refer to the attached sample page and see what differs in your project.

 

Regards,
Konstantin Dikov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Ajax
Asked by
Nicole
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or