ASP.NET 4.5, ImageButton OnClick not firing on MasterPage

Monito

New Member
I have an ImageButton in MasterPage and it's not firing OnClick Event. In pages without a masterpage it works.http://www.quotehd.com/default.aspx does not have a masterpage and if you enter the word 'funny' in search it works, but if you try to search from http://www.quotehd.com/topics which uses the masterpage it does not fire the code from masterpage.this is the MasterPage aspx code:\[code\]<asp:ImageButton ID="lnkGo1" runat="server" ImageUrl ="/content/themes/pin/images/search.png"CssClass="searchsubmit" EnableViewState="False"OnClick="lnkGo1_Click" CausesValidation="False"ViewStateMode="Disabled"></asp:ImageButton> \[/code\]C# MasterPage Code:\[code\] protected void lnkGo1_Click(object sender, ImageClickEventArgs e) { Response.Redirect("~/quotes/search/words/" + HttpUtility.HtmlEncode(txtSearch1.Text)); }\[/code\]the same code works on /default.aspx which does not have a masterpage, but only if you access the homepage with default.aspx
 
Top