tomouse
Technical User
- Aug 30, 2010
- 50
I have a page which adds a user control (ascx) when the user clicks a button (so there can be multiple controls on the page if the user clicks multiple times). Each of these user controls contains a label and some buttons. I want to use clientside javascript so that when the user clicks the button, the value in the label is incremented.
It seems that this should be a fairly simple task, but I can't work out how to reference the objects (each parent user control has it's id assigned at run time when it is added) or where would be the best place to put the javascript itself.
I've been searching and trying things for hours but couldn't find the answer - hope someone can help. I wasn't sure if I should ask this here in ASPland, or over at Javascriptville - sorry if I got it wrong. thanks, Tom
It seems that this should be a fairly simple task, but I can't work out how to reference the objects (each parent user control has it's id assigned at run time when it is added) or where would be the best place to put the javascript itself.
I've been searching and trying things for hours but couldn't find the answer - hope someone can help. I wasn't sure if I should ask this here in ASPland, or over at Javascriptville - sorry if I got it wrong. thanks, Tom