Passing data-source data to custom control

Y

Yoni Goldberg

Hi,
I have a requirement to develop custom control (I'm using C#) which is a
drop down list that get its possible entries from some web service , and let
the user choose a single option (with auto-complete/type ahead functionality).

I've implemented this requirement successfully with one exception: The
control is calling the WS explicitly instead of receiving the data from a
form data source.

How can I pass a data source from the form to my control? XML Node binding
is not suitable since my control's value is nothing but single string (the
chosen option) and the incoming data is repeating (a list of options).

Any idea or workaround? Can I pass a datasource to a control property? I can
see that the built-in drop down list control has an option to specify a data
source which will retrieve the possible entries – how can I develop such a
thing?

Thanks.
 

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

Top