Advertisement

09.09.2008 at 10:49AM PDT, ID: 23716494 | Points: 125
[x]
Attachment Details

how to manipulate two of the same user controls using javascript

Asked by mmingfeilam in JScript, Programming for ASP.NET, Dynamic HTML (DHTML)

Tags: , ,

hi,

let's say i am using two of the same user control, MyUserControl.  within the control, i have a div, divMyContainer, that i want to make invisible.  since now there are two divMyContainer controls, if i am using javascript, only one of them gets modified.  my current go around is to create another user control, MyUserControl2, that has exactly the same content as MyUserControl, but with divMyContainer renamed to divMyContainer2, so now javascript can modify two different controls as opposed to two of the same controls.  is there a better way to deal with this?  Start Free Trial
[+][-]09.09.2008 at 10:55AM PDT, ID: 22430283

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628