Am facing the problem with ajax implementation in Telerik Rad Grid.
In my page i implement RadAjaxmanager and RadAjaxPanel and RadGrid. Inside RadGrid. I want to edit details so am using EditFormSettings to edit details. In this EditFormSettings am calling a user control form.
My problem is, i dont want to allow unsafe script inside my edit form.
- So i turn on in web config file <%@ page Validate Request=True %>
- If user enters unsafe script in any text box am catching exception in my Global application_error event and redirecting to another normal aspx page.
- if i use RadGrid and Update details i use <EditFormSettings UserControlName="~/editform.ascx" EditFormType="WebUserControl" >. And i type any unsafe script message "<b>example</b>" inside the textbox.
Error was capturing in Global.aspx file, But not redirecting to Error page and throwing a javasscript error
Codes am using
- My Web config code :
My First ASPX Code My Global File Code :
Microsoft JScript runtime error: Unexpected ajax response was received from the server.
This may be caused by one of the following reasons:
- Custom http handler.
- Incorrect loading of an "Ajaxified" user control
Verify that you don't get a server-side exception or any other undesired behavior, by setting the EnableAJAX property to false.
Any one Please help me in this issue. am waiting for your reply.