Last post May 25, 2009 05:56 PM by PNasser
May 25, 2009 09:53 AM|dharanicm|LINK
For a custom label control I am adding the property AssociatedControlID. It is generating in the Label tag. But the problem is when I assign the label control to the textbox where it is generating the
for attribute of label control as below
and for textbox as below
since Id of the textBox is having _TextBox1 attached it is not able to associate the control for the assigned label.
I am assocaiting for the label; control in the
void CreateChildControls() method. there also I am just getting the Id name as "txt1"
how can I get the full Id of the TextBox or how should I proceed?
Please let me know your suggestions.
Thanks In advance
May 25, 2009 05:56 PM|PNasser|LINK
It would help if you could post some code. But I believe Control.ClientID() will return the value you want