CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/8/2008 8:27:04 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 37 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
craigmacca
Asp.Net User
master page update from lightbox3/8/2008 8:27:04 AM

0/0

Hi i am using the greybox- lightbox effect to show details of a basket.

in this lightbox the user can update there basket (removing items etc), the problem i have got is, if the user removes an item, i need to also update the master page behind the lightbox,

 i have tried the below, but this will not work because the master page is not included in the lightbox, is there a way of accessing the master page directly?

Dim BTlbl As Label = Master.FindControl("BTotalLabel")

 

Amanda Wang - M
Asp.Net User
Re: master page update from lightbox3/11/2008 3:22:35 AM

0/0

Hi,

When you should be careful by using findcontrol method, you should use the control's clientid, because if the page reference the master page, the control's clientid is different from its id,

 For instance, the ID for our Label control is ?Label1?, if it is on the master page,the ClientID of the Label is ctl00$Label1( the MasterPage control ID in this form is ctl00).

If the label control is on the content page, the clientid of the label is ctl00$ContentPlaceHolder1$Label1(ContentPlaceHolder1 is the contentplaceholder's id of the master page).

The more you can refer the section of FindControl, JavaScript, and Naming Containers of this greate article: http://www.odetocode.com/Articles/450.aspx

 

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
craigmacca
Asp.Net User
Re: master page update from lightbox3/12/2008 2:26:49 PM

0/0

 Hi i am still a bit confused with this...

 because i am using a lightbox that calls a different page Details.aspx (this has NO master page), from this page can,  i update the master page that the lightbox was fired from Default.aspx (which includes a masterapage called MainMaster.master)
 

so i need to update the label on the  MainMaster.master from the Default.aspx

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:

Web:
[#EQX-77] Use Lightbox and DWR to popup the details form over the ... For some reason, when a lightbox page is sucked in, its




Search This Site:










login control - can i clear the username on login failure?

open url in new window

web site administration tool

bug tracker?

forcing the user to logon

treeview in asp.net?

future of ttt authentication module?

control must be in server form

protecting content

object level security - where do i get information?

publishform appearing multiple times on taskbar

good book suggestions for learning .net 3.5 and vs 2008

does visual studio 2005 fully support application developed with asp.net 1.1 ?

editing web.sitemap at runtime

new module - feedback please!

good idea? moving data from web.config to the machine.config

installer: text turning black on error.

help, i need to pass on user name and password to sql

user and custom ctrl

do i have to disable membership if i don't want to use it? there is no "enable=false" property with it

club db not showing in server explorer

is it possible to call aspx from asp ?

menu control, statichoverstyle issue with image background

change expiration time from days/weeks to hours

xml data editor

syntax error in store procedure

problems getting a dropdownlist.selectedvalue in a wss toolpart

ddos attack

regarding aspnetdb.mdb

creating object data sources in the style of the existing ones

 
All Times Are GMT