G
Guest
This is driving me nuts, it is such a simply thing to do but i cannot for the
life of me work out how you are suposed to do it. I want to update the data
in DropDownListB based on what is selected in DropDownListA. I am not trying
to do anything fancy with AJAX, i am happy to use Post Backs. If it were two
controls just on the page then i would simply specify a control parameter for
the SelectCommand of the SQLDataSource control which the DropDownListB is
bound to. However the DDLs are in seperate TemplateFields that are in a
DetailsView control so i can't put the SQLDataSource control anywhere on the
page where DropDownListB can see it and It can see DropDownListA. It has
just occured to me that i could put them both in the same TemplateField but
this is not ideal. I have tried a million ways to do this all to no avail,
i would list them but it would make this post about 2000 words long.
life of me work out how you are suposed to do it. I want to update the data
in DropDownListB based on what is selected in DropDownListA. I am not trying
to do anything fancy with AJAX, i am happy to use Post Backs. If it were two
controls just on the page then i would simply specify a control parameter for
the SelectCommand of the SQLDataSource control which the DropDownListB is
bound to. However the DDLs are in seperate TemplateFields that are in a
DetailsView control so i can't put the SQLDataSource control anywhere on the
page where DropDownListB can see it and It can see DropDownListA. It has
just occured to me that i could put them both in the same TemplateField but
this is not ideal. I have tried a million ways to do this all to no avail,
i would list them but it would make this post about 2000 words long.