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
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.
msch-prv
Member
35 Points
89 Posts
History Button
Mar 01, 2008 02:43 PM|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 updatedmsch-prv
Member
35 Points
89 Posts
Re: History Button
Mar 01, 2008 03:48 PM|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.
Raquelsa02
Member
2 Points
1 Post
Re: History Button
Mar 13, 2008 08:55 AM|LINK
- Raquel