I have a simple link button in my aspx page. everything works perfect, but once i upload my web forms to web server I have the following error for link button
CS1061: 'ASP.ourproducts_aspx' does not contain a definition for 'btnShowBrandsDiv_Click' and no extension method 'btnShowBrandsDiv_Click' accepting a first argument of type 'ASP.ourproducts_aspx' could be found (are you missing a using directive or an assembly reference?)
i have a definition for my button in both .CS and .designer pages, or it won't work in my local machine this is my button
<asp:LinkButton runat="server" ID="btnShowBrandsDiv" OnClick="btnShowBrandsDiv_Click">Show</asp:LinkButton>
it maybe a very simple thing but i couldn't figure it out.
thank you