
Signature
spamhoneypot@rogers.com (Do not e-mail)
I am using Ajax to create Cascading Dropdowns. There will be a lot of them.
I have it working currently but for each dropdown I need to have a
webMethod. I was thinking if I could send in my datasource I could possible
create a few generic webmethods to handle all Cascading Dropdowns.
Thanks again
>> Hello,
>>
>> I was wondering if anyone knows of a way or can point me to some
>> documentaion that shows how I can send a datasource into a webservice.
>
> What sort of "datasource"? XML? Text? Objects? etc.
Spam Catcher - 28 Feb 2008 02:09 GMT
> I am using Ajax to create Cascading Dropdowns. There will be a lot of
> them. I have it working currently but for each dropdown I need to have
> a webMethod. I was thinking if I could send in my datasource I could
> possible create a few generic webmethods to handle all Cascading
> Dropdowns.
Yes, your WebMethod could return an object (i.e. list of all options). Your
javascript can use that object and populate your dropdowns appropriately
wtihout hitting the server multiple times.
In fact, you don't necessarily need to use AJAX for Cascading menus if you
don't have too many options...

Signature
spamhoneypot@rogers.com (Do not e-mail)