|
Hello all,
I am creating a point of sale application but I have an issue that I have a page in which I want to show the Product Items and on the same page I want to display the cart.I have done this by using the frame set but the issue is whenever I have added a new item it doesn't show on a cart untill I refresh the whole page.I think I have to use update panel through AJAX.But how could I apply this or any other solution could any one suggest please help me.
|
|
|
|
|
That how it works. The page has to send a request to the server to get new HTML that represents the current data stored.
The update panel just puts round trips to the server into a smaller container, so your still doing a postback, but just a partial page postback. The update panels works fine in developement, but in production mode, as you get farther away from the server in distance (4K miles away), the speed slows down, and the page gets jerky and stutters. The update panels is sensitive to data changes, with the exception of the textbox and dropdown box selected values, in which it has security features that do not accept changes. So if the server sent one thing, and another posted back, a security exception will be thrown.
You would have to use Javascript and a webservice, in which the client keeps polling for cart data, and the javascript updates the cart container, or have some type of trigger that fires off the process.
Or just change the user experience, by sending them to a confirmation page, and then send then back to the origin page. When they come back, everything is updated.
|
|
|
|