Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 25th, 2008, 11:57 AM
Registered User
 
Join Date: Jan 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default refresh - product listing/availability

Hello everyone

I am really new on web coding and expecting a problem with theBeerHouse kit.

I have modified the productlisting usercontrol in order tu use listview (visual web express 2008) for showing product (3*3).

The problem comes when I register an order, the availability doesn't refresh in the browseproduct page, but is correct in showproduct.

some code:
[u]productListing.ascx</u>
<asp:ListView DataSourceID="objProducts" ID="lvwProducts" runat="server" GroupItemCount="3">
[...]
<mb:AvailabilityDisplay runat="server" ID="availDisplay" Value='<%# Eval("UnitsInStock") %>' />
[...]
</asp:ListView>

the objectdatasource is the same as before
I tried to put databind() in code-behind (page_load or page_prerender) but it doesn't work.

Perhaps someone should help me,
Best regards
and apologize me for my bad english


 
Old January 30th, 2008, 09:53 AM
Registered User
 
Join Date: Jan 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Problem solved, in fact it was a simple problem of cache.

Simply add "BizObject.PurgeCacheItems("store_product");" line when the order is registered.

Best regards





Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing 8-10 and Listing 8-16. Asp.Net BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 February 6th, 2008 01:11 PM
Check availability limpep Excel VBA 0 March 2nd, 2007 07:46 PM
How to check Domain Name Availability itHighway Classic ASP Databases 4 October 13th, 2005 01:33 AM
Professional JSP availability dhanda_2000 Wrox Book Feedback 5 January 14th, 2005 01:26 PM
Non availability of code at the site pankajrv All Other Wrox Books 4 March 7th, 2004 06:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.