hi, all,
I am learning UIP now.
But i found something strange in UIP sample stores,
when i run the sample WebUI.
1.logon(http://localhost/UIPStoreWebUI_CS/logon.aspx),
2.I got to the welcome page.
3.Then i choose "Start to a new buy process"
4 arrive browse
page(http://localhost/UIPStoreWebUI_CS/browsecatalog.aspx?CurrentTask=39bcd7e3-5690-4581-a0c6-5f1664c519d4)
5.Click One item "Add to cart"
6. arrive cart page
(http://localhost/UIPStoreWebUI_CS/cart.aspx?CurrentTask=39bcd7e3-5690-4581-a0c6-5f1664c519d4)
7. Now click IE 's back button( !!!!!!!here is the problem)
8. Click another item "Add to cart"
9. cart page show last page state. it did not add new item to cart!
If i use "Browse catalog " to back to browse page in step 6 to step 7, it
works fine.
Why this happen?
If i use UIP, i must tell user do not use IE's back button?
oo789
oo789 - 05 Nov 2003 08:56 GMT
I found the answer.
in UIPManager.cs
public static ControllerBase InitializeController( IView view )
{
...
...
// query ViewManager...if it cares about out-of-order View accesses, such
as "Back" button on browser or
// out-of-bounds extra session opened "ctrl-N", then it can code
defensively against that...and perhaps force-open correct view
if (!viewManager.IsRequestCurrentView( view, state.CurrentView ) )
viewManager.ActivateView( null, state.TaskId, state.NavigationGraph,
state.CurrentView );
...
...
}
dh6y4_info@yahoo.com - 13 Nov 2003 03:15 GMT
That's is where the bug is, but how do you fix this code.
to cope with situation when user use back button?
Thanks
>-----Original Message-----
>I found the answer.
[quoted text clipped - 15 lines]
>}
>.