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.
Inadvertently, try adding a client Click event to the button:
Copy Code code as follows:
Onclientclick= "return True"
It works:
Copy Code code as follows:
<asp:imagebutton id= "Imgsearch" runat= "Server"
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.