For a drop-down box cascade, it is something that developers must know.
Projects also need cascade a few days ago. however, what is special is not only three-level linkage. the code found on the internet is well written. changing a place involves many things. inconvenient.
Finally, I found an anthem component on the Internet. I personally feel that it is very convenient to use this component. I don't need to write JS Code at all, and the operation is relatively simple and free.
The method is very simple. Step 1: Put anthem. dll under the bin directory of the project.
Step 2: Add a code on the top of the ASPX page, and change <asp: dropdownlist> </ASP: dropdownlist> to <anthem: dropdownlist> </anthem: dropdownlist>, add the autocallback = "true" attribute.
Step 3: Write the query code in the onselectedindexchanged = "dropdownlist1_selectedindexchanged" event of <anthem: dropdownlist>.
The following is the specific code: There is a comment in it. I believe you can understand it ..
ASPX page
Aspx. CS page
SQL. CS file. Query
Anthem. dll component
Source code, including the database, tested