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

adapting behavior of scriptmanager history

1 Answer 51 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Felix
Top achievements
Rank 1
Felix asked on 15 Mar 2010, 01:38 PM

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 asp.net 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 www.example.com/page/#/page1/page2/page3/. 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, 

Felix

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 16 Mar 2010, 02:07 PM
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">
    <Scripts>
        <asp:ScriptReference Assembly="System.Web.Extensions"
                             Name="MicrosoftAjax.js" Path="~/MicrosoftAjax/MicrosoftAjax.js" />
        </Scripts>
</telerik:RadScriptManager>

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.
Regards,
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.
Tags
ScriptManager and StyleSheetManager
Asked by
Felix
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or