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

RadAjaxPanel and urlrewriter

1 Answer 61 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Евгений
Top achievements
Rank 1
Евгений asked on 12 Jan 2010, 04:50 PM
Hi to all !

I  have RadAjaxPanel and urlrewriter (IsapiRewrite4) in my application.
As you see i use javascript functions for ClientEvents.
I have a simple asp:LinkButton on my page.
My first problem was that i could not postback to this page  when i turned on urlrewriter. I solved it by direct setting
PostBackUrl property for linkbutton. Now it os ok

But ajax functions do not called anymore with rewriter. Please help me, what should i do to force it work?

Thanks a lot

<

RA:RadAjaxPanel OnAjaxRequestError="AjaxRequestErrorHandler" id="main" runat="server" ClientEvents-OnRequestStart="ShowWait(); ..." ClientEvents-OnResponseEnd="EndWait(); ...">

 

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 15 Jan 2010, 09:50 AM
Hello Eugene,

Generally, RadAjax problems originate from the URL rewriter also rewriting HTTP handlers needed to serve web resources. The most common result of erroneous URL rewrite of resource handlers is client exceptions like "Sys is not defined" or "Telerik is not defined" and the reason being that the AJAX framework and Telerik client scripts not being served. Additionally, as stylesheets and images are served also through resource handlers, if you load a control after AJAX for the  first time, your control will not have any styles and images applied.

To fix  this issue, you need to make sure your URL rewriter excludes URLs to HTTP handlers from rewriting. For example, URLs to WebResource.axd and ScriptResource.axd need to be excluded.

All the best,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Евгений
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or