S
Sergio FLorez M.
I created a composite control which works just fine. I want to be able to
set the focus to one of its contained controls (a textbox) but this is
giving me a javascript error. The problem is that the ClientID property of
the contained textbox is not giving me the correct value. When I debug the
application the contained textbox's ClientID is "myControl__ctl1", but when
I look at the generated HTML the input tag looks like this: <input
name="myControl:_ctl1" ... />
How did the first "_" turn into ":" and how do I fix this?
set the focus to one of its contained controls (a textbox) but this is
giving me a javascript error. The problem is that the ClientID property of
the contained textbox is not giving me the correct value. When I debug the
application the contained textbox's ClientID is "myControl__ctl1", but when
I look at the generated HTML the input tag looks like this: <input
name="myControl:_ctl1" ... />
How did the first "_" turn into ":" and how do I fix this?