placeholder里按钮无反应?

我在网页上放了一个placeholder,在placeholder里调用一个ascx。ascx上有一个按钮和gridview。我希望在按钮按下后,gridview会显示一组数据。但现在按钮按下后,没反应。调试程序时,似乎程序并没有跳入click的事件。上网收了一下,有人说是placeholder要重新加载。不明所以,请高人指点!这是placeholder的代码,在treeview某个节点选择后,在placeholder里调用某个ascxprotected void TreeView1_SelectedNodeChanged(object sender, EventArgs e) { switch (TreeView_QueryItem.SelectedNode.Value) { case "PIM_SN": Control c1 = LoadControl(@"~/Query_Condition/PIM_SN_Query.ascx"); PlaceHolder1.Controls.Clear(); PlaceHolder1.Controls.Add(c1); break;default: break; } } 在placeholder里添加click的代码。 protected void BtnQuery_Click(object sender, EventArgs e) { GridView1.DataSource = null; //bind empty sorce to force clear content GridView1.DataBind(); string SN = TxtBox_SN.Text; string testType = DropDownList_Type.Text;} 要如何重新加载placeholder才能进入这个事件呢?

你的GridView是随着你的页面刷新的还是随着按钮刷新的要搞清楚,随着按钮刷新,在监听事件里应该给DataSource赋值吧。