I have weird problem with CascadingDropDown. I have user control with two dropDowns. If I get into this page through Select Class -> Select Category pages I set
CascadingDropDown1.Enabled =false (and so on for all of them)and use query string to populate DDLs and set selected value. Or I can directly get into this page and use CascadingDropDown since I don't have query string.
But it doesn't work this way. When I get into this page through Select Class -> Select Category pages everything is fine, but after first postback ddl's datasources are empty.
If I completely remove CascadingDropDown definition from code - it works OK.
Any idea why this happens? Not sure, probably I'm missing something or it's CascadingDropDown bug.
Thanks.
Vladimir.
Hi Vladimir,
Can you elaborate what do you mean by "Select Class -> Select Category pages" ?
I don't quite understand your problem.
Thanks very much for the replay.
I mean that I have on the page two DropDownLists. First I select Class then by this Class i can select Category. After I select Category I'm able to populate GridView.
On this page I can get either through direct link (in this case I don't have data for Class and Category and wanted to use CascadingDropDown) or I can go first on the page SelectClass. Then on the page SelectCategory which will move to the page where I'll have Class and Category already selected and available in the query string in the url address.
This is basically what I wanted.
No comments:
Post a Comment