Description: This article is
Http://blog.9cbs.net/cuike519/archive/2004/08/22/81727.ASPX article made a little modification.
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 UpClassIDint (4) Super Class Class ClassLevelint (4) Class level, 1 is big, 2 is small class
Second, the design steps:
1. First, we create a new page Droptest.aspx in which two DROPDOWNLIST controls: DropDownList1 and DropdownList2, its full code is as follows:
<% @ Page language = "c #" codebehind = "droptest.aspx.cs" autoeventwireup = "false" inherits = "studyweb.droptest"%>