To clarify, I'm using the new Web Forms model binding system in .NET 4.5
which uses the control's SelectMethod property.

This is supposed to manage binding and any type conversions at runtime.
What I was missing was the need to pass the CatID in as a value provider
from the parent list. This obviates the need for the SelectedIndexChanged
event.

I've tried following a couple of online examples but I still can't get the
data to refresh.

Again, debugging shows the correctly selected value for the DropDownCat
list and the query is retrieving the correct results.

I just can't get the Products list to update on postback.

[image: Inline images 1]

On 12 August 2013 11:41, Web Admin <[email protected]> wrote:

> Yes, that's the problem. The query is correct but the data is not
> refreshing.
>
> How do I re-bind this data when firing the change event?
>
> Regards,
>
> Paul
>
>
> On 12 August 2013 11:07, Prashanth Thiyagalingam <[email protected]
> > wrote:
>
>> Looks like you are not rebounding the values back to the dropdown
>>
>> Cheers,
>> Prashanth
>>
>> Sent from my iPhone
>>
>> On Aug 12, 2013, at 7:50 AM, "Web Admin" <[email protected]>
>> wrote:
>>
>> Hi all,
>>
>> I have two dropdown lists on a page, *Category* and *Product*, where
>> Product is a child list filtered by the selected Category.
>>
>> On initial page load this works as expected.
>>
>> <image.png>
>>
>> Both lists are populated via Link using the following methods.
>>
>> <image.png>
>>
>>
>> And the Category dropdown SelectedIndexChanged event just calls
>> GetProducts again.
>>
>> <image.png>
>>
>> While debugging I can see that the CatID reflects what it's changed to
>> and that the items array contains the correct products. But the Product
>> dropdown is not being updated.
>>
>> I'm sure I'm missing something obvious. When I try to explicitly databind
>> the control I receive a string conversion exception at line:93.
>>
>> Regards,
>>
>> Paul
>>
>> _______________________________________________
>> ozmoss mailing list
>> [email protected]
>> http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
>>
>>
>> _______________________________________________
>> ozmoss mailing list
>> [email protected]
>> http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
>>
>>
>

<<image.png>>

_______________________________________________
ozmoss mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to