I just put a button call refresh cart... And i need to ensure user to refresh the cart before submit the order... Kinda weird, but can't found any better way..
Thanks anyway for the help...
Cheers...
User Profile
Collapse
-
I think i found the problem... On page PushCart, i need use Response.Redire ct so that i can read the changed cookies... same things for session... oh my god... the problems only that i havent refresh the page... but i do change the page.. why does it works like that?
Anyhow to directly insert the response.redire ct? i insert it into the page load, but i become couldn't load the page... I use javascript to change the page previously...Leave a comment:
-
I have tried for cookies as well.. there is the same problem.. couldnt work... Is there any setting that i had to make?Leave a comment:
-
Yeah... it is different... On the page Product, it is the new value added count...
Where as on the PushCart page, it is the old value count...
Product .count > pushcart.count. ....
Arggh... Is that problem cause by the page load.. because i load the page from another Iframe... I mean i change Page product to PAge PushCart or vice versa through another iframe that contain page navigator...Leave a comment:
-
I think the problem is not on the product page... because whenever i add the NEW value into the session, I prompt the value before changing to page PushCart.. I can read the exactly correct value that i have added... The problem is that on the page PushCart, i cannot read the new value that has been assigned..Leave a comment:
-
Alright... it seems that the problems hadn't been solved...
In the Product page, i can prompt the number of items in the arrayList correctly.. I add 2 item, then it prompt 2...
At the PushCart page, i can display the correct amount of items inside the arraylist correctly, which is 2...
Then i tried to add more 2 items in the product page and it prompt 4 on PRODUCT Page, and go back to the PUSH CART page...Leave a comment:
-
Page of Product
[code=vbnet]
Private Sub btnCustUpdate_C lick(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles btnCustUpdate.C lick
Dim cart As New ArrayList
If IsNothing(Sessi on("cart")) Then
Dim tempprice As String
Dim sql As String
sql = "Select Product_ID, Title, " & Request.Form("t xtCustQuant")...Leave a comment:
-
Thank you... i learn a new thing which is directcast.. but i was able to show the quantity of Arraylist. It just that the quantity is not relevant between PAGE A and PAge B... =(
Now the point is that i am doing my PUSHCART feature... I used session to stored the cart(Arraylist) over page... I need to add the item to the cart in Product Page... and display it in PushCart Page... when i add EXTRA item to the cart in Product PAge, it...Leave a comment:
-
Yeah.. i have tried to insert as the break point...
Example:
First time i only insert 2 item into the arraylist.. then assign it into the Session... After the assignment, i prompt the session.count() and it appear 2.. ok it is correct anyway..
then I go to page B, and it prompt 2 as well... yeah!! correct....
I then try to go back to page A to add more things to my cart... then it prompt...Leave a comment:
-
Thanks...
Yeah.. it return number of item that i store in arraylist... It is same.. whenever i add new item to the arrayList in page A... and assign it to the Session... At the page b, it only return the number of item in the arraylist that i stored for the FIRST time...
I dont know why.. but it is appear... T.TLeave a comment:
-
Thank for your reply...
Yeah i am sure.. here is piece of my code...
=============== ============Pag e A============== ==========
If IsNothing(Sessi on("cart")) Then
Dim sql As String
sql = #SQL CODE HERE#
cart = GetListRecord(s ql) <---- A method that return ArrayList
Session("cart") = cart <---- Session Assignment...Leave a comment:
-
How to Read Changed Session?
Hi guys, i am a freshman here.. I would like to ask a things about Session.. Does session only work to be read for once? and if you change it into new value, it will not be able to be read in other page?
Scenario..
I have page A and Page B. I assign a new Session("cart") = 1. Then I can read in Page B that Session("cart") = 1.
Due to some reason, I have changed the Session("cart")... -
Cannot Read Changed Session Value?
Hi guys, i am a freshman here.. I would like to ask a things about Session.. Does session only work to be read for once? and if you change it into new value, it will not be able to be read in other page?
Scenario..
I have page A and Page B. I assign a new Session("cart") = 1. Then I can read in Page B that Session("cart") = 1.
Due to some reason, I have changed the Session("cart")...
No activity results to display
Show More
Leave a comment: