andre72
asked on
Add control programmatically and access it via JavaScript
Hi,
I like to add a control programmatically to a placeholder like:
TextBox tx = new TextBox();
tx.ID = "myControl";
myPlaceholders.Controls.Ad d(tx);
Works fine and is not the problem.
But when I place a control fix at my page I can access it from JavaScript like $find(<%= myControl.ClientID %>);
This works no more with the programmatically way.
How can I access it in this way?
Thanks
Andre
I like to add a control programmatically to a placeholder like:
TextBox tx = new TextBox();
tx.ID = "myControl";
myPlaceholders.Controls.Ad
Works fine and is not the problem.
But when I place a control fix at my page I can access it from JavaScript like $find(<%= myControl.ClientID %>);
This works no more with the programmatically way.
How can I access it in this way?
Thanks
Andre
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER