Hello Guys,Problem:My save button won''t go to its event handler.Scenario - 1:A. I have a user control "GridControl" that has a datagridview that has an edit column per row.B. Inside GridControl "my user control" I have implemented ajax to handle partial postback. I need this for paging and sorting.<asp:UpdatePanel ID="Panel1" runat="server"><contenttemplate> <asp:GridView ID="CommonGridView" runat="server" EmptyDataText="-- No Record Found --" Width="100%" CssClass="Grid"></contenttemplate><triggers> <asp:AsyncPostBackTrigger ControlID="CommonGridView"/></triggers>Scenario - 2:A. In my aspx page i call the above usercontrolB. In this aspx page, I have a div, textbox, and save button.C. And when user click the edit button in the usercontrol the edit div whill showup.D. When Click save the save button must go to its handler SaveButton_Click(object sender, EventArgs e){...}Question:When this: <asp:AsyncPostBackTrigger ControlID="CommonGridView"/>Why is that if save button click it won''t go to SaveButton_Click?But when this: <asp:PostBackTrigger ControlID="CommonGridView"/>the save button event handler gets executed?Thanks in advance for any help.. 解决方案 这篇关于单击按钮时未处理的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-04 01:49