Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / November 2003

Tip: Looking for answers? Try searching our database.

UIP webUI pages can not use IE'back button?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
oo789 - 05 Nov 2003 08:10 GMT
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]
>}
>.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.