日期:2014-05-17 浏览次数:20495 次
//注意设置dropDownList1的自动回传属性AutoPostBack="True"
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
Image1.ImageUrl = DropDownList1.SelectedItem.Value; //显示头像的image根据dropdownList变化头像也变化
}