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

Routing and SpellCheckHandler.axd

1 Answer 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 2
Stephen asked on 20 Dec 2008, 09:09 PM
We are building a CMS type application and using Route handling to map attractive paths. This was causing a problem for lots of Telerik dialogs until the Q3 version. I've wired up the DialogHandler.axd (per directions in various postings) and its working well. However, I'm now having a problem with the SpellCheckHandler.axd. Specifically if the page request references subdirectories then those subdirectories appear in the requst for the axd component. I've handled it so far by including the following in my route modifications

        routes.Add(new Route("{resource}.axd/{*pathInfo}", new StopRoutingHandler()));
        routes.Add(new Route("{path}/{resource}.axd/{*pathInfo}", new StopRoutingHandler()));
        routes.Add(new Route("{path}/{subpath}/{resource}.axd/{*pathInfo}", new StopRoutingHandler()));

This remaps it for one or two levels but I thinking there should be away around this. The DialogHandler is taken care of with the folowing
        base.DialogHandlerUrl = "~/Telerik.Web.UI.DialogHandler.axd";
but I don't see anything similar for the SpellCheckHandler which is loaded via paths such as
        ~/PODS/page/Telerik.Web.UI.SpellCheckHandler.axd

Is there a way to handle this other than with my additional route handles above?




1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 23 Dec 2008, 02:16 PM
Hello Stephen,

As far as I am able to judge, your current workaround is concise enough. I am not able to provide a better option.
My suggestion is to continue using it the way you developed it.

Best regards,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Stephen
Top achievements
Rank 2
Answers by
Tervel
Telerik team
Share this question
or