就可以通过Triggers 来实现.
我们通过一个例子来说明:
1.新建三个控件:ScriptManager,UpdataPanel,2个Label,DropDownList(DropDownList 控件放到UpdataPanel 外)
Label1.Text = "选择你最喜欢的宠物" (Label2 放到UpdataPanel 里)
DropDownList 启用 AutoPostBack
图8
2.接着选择UpdataPanel 属性里的Triggers
然后在出现的UpdataPanelTrigger 集合编辑器里,点添加,在ControlID 里选 DropDownList1
3. 双击DropDownList1,键入以下代码:

4.OK, try agan!!
图11