When making an article to add a function, you want to display the secondary class in the selection, you can easily implement it using DropdownList's SelectedIndexchanged event, but each time you choose the page, you will always be refreshed once, people feel Very unhappy. In order to achieve DropDownList brush-free secondary linkage, I found some information online in the past few days, but I can't reach the effect I want. After repeated debugging, this function has now been basically realized, and the code is now attached. I. Database design:
Field Name Data Type Description ClassID Auto Number Class ClassName VARCHAR (8) Class name UpClassID INT (4) Super Class Class ClassLevel Int (4) Class level, 1 is big, 2 is small class
Second, design steps: 1. First, we create a new page Droptest.aspx, put it in two DROPDOWNLIST controls: DropDownList1 and DropdownList2, its full code is as follows: <% @ page language = "C #" codebehind = "Droptest.aspx .cs "autoeventwireup =" false "inherits =" studyweb.droptest "%>