button Click event does not work, after the breakpoint found that there is no trigger the event, there is a good solution, we can refer to the following
Today, when you run a previous project again, the Discovery button's Click event does not work, and after the breakpoint it is found that the event was not triggered at all .... According to the answers found on the internet, some said that the control deleted to drag a go in, although the control has also been broken before, the time to drag and drop effectively, but this time did not work. Then, continue to find the answer, some say it may be form nesting, but see the source code does not have this problem. Accidentally, try to add a client click event in the button: The code is as follows: onclientclick= "return True" is valid: The code is as follows: <asp:imagebutton id= "Imgsearch runat=" serv Er "imageurl=" ~/images/iconsearch.png "onclientclick=" return True "onclick=" Imgsearch_click "style=" margin-top:5px; " /> Although still do not know the specific reason is what, but after all work, still very happy.