adapting behavior of scriptmanager history

2 posts, 0 answers
  1. Felix
    Felix avatar
    3 posts
    Member since:
    Feb 2008

    Posted 15 Mar 2010 Link to this post

    Hey there, 

    My problem is not directly related to telerik, but I very much know about your expertise, so I am asking in this forum.

    I am developing a web-application using the latest telerik ajax-release, that is almost completely based on ajax-requests. So using the scriptmanager history of Microsoft is vital to use the page properly. The history works like a charm, but for properly readable urls I am trying to do 3 things: 

    disable the URL-Encoding of the history-point, so that the browser for example shows "/" instead of %2f

    - using a single point instead of a key-value-collection, so that I don't need the "=" in the url

    - elimination the destinction between client-side and server-side (as I always use server-side), so that the "&&" is not shown. 

    The final goal is to have a clean url like The logic to deal with the url-string exists and works.

    To achieve that, I need to change the microsoftajax.js-file, is that correct? I could not figure out a way to do that. Can you help me out? Or do you have a better idea?

    Thanks so much in advance, 


  2. T. Tsonev
    T. Tsonev avatar
    2794 posts

    Posted 16 Mar 2010 Link to this post

    Hi Felix,

    We can't be of much help with the history feature improvements, as it's part of the standard ScriptManager functionality. You can edit MicrosoftAjax.js, save it as an external file and reference it through RadScriptManager:

    <telerik:RadScriptManager ID="ScriptManager1" runat="server">
            <asp:ScriptReference Assembly="System.Web.Extensions"
                                 Name="MicrosoftAjax.js" Path="~/MicrosoftAjax/MicrosoftAjax.js" />

    This file is different for ASP.NET 2.0, 3.5 and 4.0. The source code (debug and minified versions) are available from Microsoft:

    The 2.0 version is distributes as part of Microsoft AJAX 1.0.

    I hope this helps.
    Tsvetomir Tsonev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top