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

Javascript AjaxRequest Error in ScriptResource

1 Answer 21 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Kevin Cauchi
Top achievements
Rank 1
Kevin Cauchi asked on 01 Jul 2011, 03:55 PM
Hi there,

I have a page where i make some calls via javascript ajaxRequest (ex. <%= RadAjaxManager1.ClientID %>.ajaxRequest('Move'); )

I also have a URL rewrite module as a http module. Whenever something causes a post back, the rewrite module gets called : 

protected virtual void Rewriter_AuthorizeRequest(object sender, EventArgs e)
{
        HttpApplication app = (HttpApplication)sender;
 
        absolutePath =  app.Request.Url.AbsolutePath;
 
       ........
       ........
       ........

The absolute path always contains the called page.

Now the problem is that whenever I am calling the "ajaxRequest" through java (skipping the post back), the authorize request method in the rewrite module is called WITHOUT a page set (just the folder). This obviously gives a 404 and thus, the AjaxRequest method in the back-end is never called. 

Does anyone know why this is happening? Any work arounds?

Thanks In advance!

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 06 Jul 2011, 11:36 AM
Hi Kevin,

Please verify if your url rewriter works normally with ASP.NET UpdatePanel control (our RadAjax is based on Microsoft ASP.NET AJAX ). Please visit also this post for more info:
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx


Regards,
Maria Ilieva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Ajax
Asked by
Kevin Cauchi
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or