ListBox in user control

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

I have userControl and inside this control I have ListBox.
Now I would like to set the properties and bind with database this listBox
in my control anywhere on the pages, where I use my control.
How can I do that? How can I expose all methods and properties of this
listBox in user control?

Thank you,
Simon
 
expose the required methods and properties from your User Control and call
them in the place where you are using this user control.

Av.
 
Expose the listbox itself as a property of your user control, that should be
sufficient.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top