Hi. i hava a masterpage and an default.aspx page that derives from masterpage. On default.apsx, i list products. when i click add basket buton that product is added to shoppingbasket. i do this using jquery. On mastepage,there is a label that shows how many product is in shopping basket.
i want to do this. when i click add basket on default.aspx, label control on masterpage show the new product count on shoppingbasket.How can i access masterpage control and change using javascript/jquery from default.aspx.Thanks.
Access masterpae control from other page.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Suthish NairRank #92 · 22.8K reputationPosted Dec 26, 2010, 10:06 PM EST
Label lbl = new Label(); lbl = (Label) this.Master.FindControl("lbl1"); lbl.Text = "Hello Welcome"; lbl = null;