Last post Mar 13, 2008 04:55 AM by Raquelsa02
Mar 01, 2008 10:43 AM|msch-prv|LINK
I created a page using the AddHistoryPoint method. The page works fine when a single parameter is attached to the history point. Can additional parameters be included inside the history tag?
I noticed that the script manager behavior changes depending on the arguments contained in the history tag. For instance, when a single parameter is attached to the history url, the script manager navigation event fires whenever the backbutton is clicked
(as expected). If, on the other hand, the history is made up of mutliple parameters the navigation event fires continuously whenever the history point is updated. Question: Is the history feature currently limited to single argument only?
Ideally, I would like to create a chain in the form ..Test.aspx#&&state=Info0&Info1&Info1... TIA for any hints.
Dim strState As String
strState = Me.RecListCatTest1.PageIndex.ToString
Me.ScriptManager1.AddHistoryPoint("Index", strState, "PageIdx " + strState) ' Script Manager navigation event fires only when browser back button is hit (expected behavior)
strState = Me.RecListCatTest1.PageIndex.ToString & ";" & Me.RecListCatTest1.RecipeCatID.ToString
Me.ScriptManager1.AddHistoryPoint("Index", strState, "PageIdx " + strState) ' Navigation event fires continously whenever the history tag is updated
Mar 01, 2008 11:48 AM|msch-prv|LINK
Well, after experimenting further I came up with a fix by replacing the semi-column with an alphabetical character such as 'x'. This does not seem to confuse the script manager.
Mar 13, 2008 04:55 AM|Raquelsa02|LINK