wilf57 wrote:
I wrote a public property (Text) in the user control, so I can read and write the listbox(the one in the user control) on the server side but that doesn't help on the page client side, right?!
The property is not for use on the client side, but on the server side.
wilf57 wrote:
So you say in the page client script I cannot access the listbox inside the user control by its ClientID property , only by the hard coded ID.
You can never access a control from the client side, regardless of where it is. The control only exists on the server side, the only thing that is left of it on the client side is the html elements that it renders. The concept of a user control doesn't exist on the client side. You can access any element in the page, regardless of how the code for it is created on the server. What you have to do is simply get access to the right control so that you can get the ClientID for it, then you can use that in the client code to access the control without problem.
--- single minded; short sighted; long gone;