D
DFB
I have created a custom control which contains an asp:dropdown inside it and
embedded my custom control in my web page.
I am accessing this dropdown via javascript.
The Problem: when this asp:dropdown control was embedded directly in my
webpage ... my javascript call to reference this dropdown worked (javascript
referenced call "document.all.idCategories").
BUT NOW ... because I have embedded this asp:dropdown id=idCategories within
my user control, the compiler has prepended it with a prefix id of _ctl0_, so
my javascript references to it no longer work.
HOW do I switch off this prepended prefix of _ctl0_ ... I did it before many
years ago .. but can't remember.
:|
Thank you in advance, frustruated!
embedded my custom control in my web page.
I am accessing this dropdown via javascript.
The Problem: when this asp:dropdown control was embedded directly in my
webpage ... my javascript call to reference this dropdown worked (javascript
referenced call "document.all.idCategories").
BUT NOW ... because I have embedded this asp:dropdown id=idCategories within
my user control, the compiler has prepended it with a prefix id of _ctl0_, so
my javascript references to it no longer work.
HOW do I switch off this prepended prefix of _ctl0_ ... I did it before many
years ago .. but can't remember.
:|
Thank you in advance, frustruated!