|
-
Nov 12th, 2010, 03:17 AM
#7
Re: UserControl javascript: get control by id
Hey,
Regardless of the number of the UserControls that get placed on the place, the ClientID of the controls on the page should all be unique. Typically, this means that the name of the parent control will be appended to the front of the label controls within the page.
Nick, as a first step, add two user controls to your page, and then inspect the HTML. Are you getting unique ID's for each of the two labels within the user controls?
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|