@Citronas answer is correct, but to add to it, you should also ensure you handle the default behavior correctly when using multiple input forms. Put a panel around each and use DefaultButton
to identify the submit control for that panel. This will ensure that if the user presses enter (which is very typical, especially for login forms) the correct submit handler is used.
Also note that this won't work reliably for all submit control types. See Link Button on the page and set it as default button, work fine in IE but not in Mozila
A solution is suggested there for this problem, though personally I prefer to address this just by including a hidden button control that uses the same event handler as your visible control, e.g.
<asp:Button runat="server" onclick="Search_Click" ID="SearchButton_Default" style="display:none;" />
Then make this hidden button the default control instead of your LinkButton