471,582 Members | 1,380 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,582 software developers and data experts.

Session Value Updating and Javascript Navigatin Problem?

I am developing a shopping cart in which for the top-menu navigation
I'm using Javascipt.I have a small Item basket which shows up in all
the pages when an Item is added to the main basket. And i'm using
Sessions for this Items basket. In all pages I'm able to see the exact
value of Sessions when the pages are posted back but when I'm
navigating using Javascript to a particular page I'm not able to see
any of changes in the Items basket,
and when I refresh the page I can get the current values.
I can see that the page is not posted back when I click the particular
page Javascript URL
I'm not uisng any Master Pages as I couldn't coz of the front end

I know that Javascript is a client side functinality but Is there any
way so that I can update the session values on the page which i'm
navigating using Javascript menu ?

Or Is there any way so that I can get the particular page values in the
Main Basket page and update them there as we can do in the Master pages

Or Is it possible to refresh ONCE the page when the page is loaded ?
Hope I made myself clear

Thanks in advance for your help and time

Some Code for reference
protected void Page_Load(object sender, EventArgs e)
if (Convert.ToString(Session["Total"]) == string.Empty)
pllogin.Visible = true;
plbasket.Visible = false;
pllogin.Visible = false;
plbasket.Visible = true;
lblquantity.Text = Convert.ToString(Session["TotQty"]);
lblprice.Text = Convert.ToString(Session["Total"]);

Jul 10 '06 #1
0 1066

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Lina Manjarres | last post: by
6 posts views Thread by =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.