Due to the need to link DropDownList in the application, the implementation method and process will be written below, and the resource can be shared, and the two friends can also take some detour less. . The so-called DropDownList, that is, when choosing a DropDownList, make another DropDownList's content update (if you want to select the city), press the regular method to change the second DropDownList in the first DropDownList's SELECTEDEXCHANGED event Data source and resin, but if this is reselected in each reselection, the refresh of the page will bring, except for the screen flash, if the same page has a password box, the content will also be cleared. At this time, we need no refresh implementation. The basic principle sends a request to another hidden page with JS when selecting a change and get an XML stream, and then put it in the corresponding DropDownList. The example is as follows:
First we need a page that places two DROPDOWNLIST, if it is called WebM2.aspx, the page code is as follows: <% @ page language = "codebehind =" Webform2.aspx.cs "autoeventwireup =" false "inherits =" WebApptest1 .Webform2 "%>