Button1的Click事件:
protected void Button1_Click(object sender, EventArgs e)
{
this.GridView1.DataBind();
}
然后修改前台页面,在UpdatePanel中添加如下的属性:
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
</Triggers>