Do we have AJAX dropdownlist to bind with a WCF Web Service?

Last post 05-11-2008 7:13 PM by qbui66. 2 replies.

Sort Posts:

  • Do we have AJAX dropdownlist to bind with a WCF Web Service?

    05-09-2008, 12:26 PM
    • Loading...
    • qbui66
    • Joined on 10-14-2007, 11:22 PM
    • Posts 42

    Hi all,

    I have a WCF Web Service that returns an array of customer numbers that I need to display it in a drop down list.  I want to call the WCF web service in the drop down list instead of binding.  Is there a way to do it now?  I read some where that the feature wasn't available in 2007 but wondering if it's here now.  The article mentions that you can call the asmx web service in the drop down list, and the work around is build the asmx web service to call the WCF web service.  So:

    1.  Can we call the WCF web service in the drop down list now?

    2.  If we can't, then how can I build the asmx web service to call the WCF web service?

    Thanks in advance!

    Qbui

  • Re: Do we have AJAX dropdownlist to bind with a WCF Web Service?

    15 hours, 9 minutes ago
    • Loading...
    • qbui66
    • Joined on 10-14-2007, 11:22 PM
    • Posts 42

    It appears that we probably do not have AJAX dropdownlist that binds to a WCF Web Service so I think of another way and wonder if this works or not, so please let me know if my thinking is right:

    I have a WCF web service that returns an array of customer IDs that I want to display in a drop down list.

    To do that, I think I can use ObjectDataSource and have the drop down list to call that ObjectDataSource.

    To use the ObjectDataSource, I have to write a Data Access Class that has select method to call the WCF service to get an array of customer IDs.

    Do you think it will work?  Or does any of you have a better solution to this problem?  Thanks in advance!

    Qbui

  • Re: Do we have AJAX dropdownlist to bind with a WCF Web Service?

    13 hours, 44 minutes ago
    • Loading...
    • qbui66
    • Joined on 10-14-2007, 11:22 PM
    • Posts 42

    I just made a quick test and it works as I described above.  If anyone has a better solution, please let me know.  Thanks!

Page 1 of 1 (3 items)