当从数据库绑定完整的ASP.NET页面时,Asp.net按钮不会触发

问题描述:

我正在使用Ajax tabcontainer和repeater来绑定数据以及其他一些字段,例如会话值。一切正常,但是当点击按钮时,无论是asp.net按钮还是HTML按钮或链接按钮或图像按钮或任何其他可用按钮,我都尝试了该绑定页面中的所有按钮。这些按钮根本没有触发,请有人帮我解决这个问题。



我尝试了什么:



I am using Ajax tabcontainer and repeater to bind the data and also some other fields like session values. All are working fine but when comes to button click whether it is asp.net button or HTML button or link button or imagebutton or any other buttons available i have tried all those buttons in that binded page. Those buttons are not firing at all please anybody help me regarding this issue.

What I have tried:

In Page load
Label.Text = Session["Object"].ToString();
Label1.Text = Method().ToString(); // <-- This method is used get the details and append to asp.net label
int count = Convert.ToInt32(Method1()); // <-- This method1 is used to count the details
hdnCount.Value = count.ToString();
// It is used to get the details from database
// and binds to Dataset to create AjaxTabPanels
BuildDataSet();
// This is used to fetch the details from the database
// and creates the tabpanel for ajax tabconatiner
AddTabPanels();

以下是我的建议:



(1)您是否尝试在Button Click事件中设置断点以查看是否它命中了吗?



(2)我不是UpdatePanel控件的粉丝,但是你可以尝试删除 ChildrenAsTriggers =false您的UpdatePanel控件中有