OK I got it.
"moondaddy" <moondaddy@nospam.com> wrote in message
news:OVGOZtxCEHA.2616@TK2MSFTNGP12.phx.gbl...
> I forgot to mention: I can get it to behave correctly only when I set the
> browser settings to:
> tools/General-Settings/ and check "Every Visit To Page".
>
> The problem is that hopefule most browsers will have a defualt setting
other
> than this one so caching of pages on the client side can work when you
want
> it to. Is there a way to override this setting for this particulare page
> (data.aspx) so it will always get a new version and not a cached version?
>
> --
> moondaddy@nospam.com
> "moondaddy" <moondaddy@nospam.com> wrote in message
> news:enpKBmxCEHA.2888@TK2MSFTNGP09.phx.gbl...
> > OK I figured out the problem, but not the solution. First, let me
clarify
> > how my pages are setup: I'm using frames and there are 3 frames
involved
> in
> > this process, their aspx pages are:
> > data.aspx, this page (and frame) is hidden and data.aspx is used to
> martial
> > parameters back and forth.
> > ProductListing.aspx has a datagrid with inventory items and their images
> (a
> > user clicks on an image and the item is added to the shopping cart via
> > data.aspx).
> > leftMenu.aspx is the page on the left hand side which has a menu for
> product
> > categories and also has the shopping cart total.
> >
> > When the user clicks on the first image in ProductListing, a jscript
> > function passes the sku number to data.aspx for a postback like this:
> > parent.data.frameElement.src="data.aspx?Task=CartAddNew&sku=" + sku;
> >
> > The 'Page_Init. method in data.aspx passes the sku to another method
that
> > added the item to the shopping cart, and then writes shopping cart new
> total
> > to an invisible textbox in data.aspx. So when data.aspx reloads,
another
> > jscript function takes that total and writes it to a textbox in
> > leftMenu.aspx.
> >
> > Evidently, when the sequence of clicking on images to add them to the
> > shopping cart goes like this:
> > Click on the first image - its added to the cart (cart total = $10)
> > Click on the second image - its also added to the cart (cart total =
$20)
> > Click back on the first image again - (cart total goes back to $10) and
no
> > server side code executes because the first instance of data.aspx is
> pulled
> > from cache. This is why for example if all items cost $10, the total
goes
> > to $20 when the second item is clicked on, and then back to $10 (instead
> of
> > $30) when the first image is clicked on again.
> >
> > To verify this I put 'Response.Write("Here has been executed " & Now)'
in
> > the data.axpx Page_Init sub. When I click back on any items in the
> datagrid
> > after already clickng on them for a first time, the timestamp goes back
to
> > thier original timestamps.
> >
> > Solution: How do I prevent instances of data.aspx from being cached on
> the
> > client (or anywhere for that matter)?
> > I don't have any tags like the one below in data.aspx:
> > <%@ OutputCache Duration="1" VaryByParam="someparam" Location="Client"
%>
> >
> >
> >
> > --
> > moondaddy@nospam.com
> > "[MSFT]" <lukezhan@online.microsoft.com> wrote in message
> > news:16XqHGPAEHA.2196@cpmsftngxa06.phx.gbl...
> > > If you right click in the frame and select "Refresh", will the break
> > > points get fired? Also, as I suggest, add some code in the code behind
> > like:
> > >
> > > Response.Write "Here has been executed"
> > >
> > > Have you seen the line "Here has been executed" after click the item
for
> > > second time?
> > >
> > > Luke
> > > Microsoft Online Support
> > >
> > > Get Secure!
www.microsoft.com/security > > > (This posting is provided "AS IS", with no warranties, and confers no
> > > rights.)
> > >
> >
> >
>
>