把AutoPostBack设为true,再在private void DropDownList_SelectedIndexChanged(object sender, System.EventArgs e)
{...}中编写函数。