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:
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:
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!
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!