开发者

error for click events

开发者 https://www.devze.com 2022-12-12 02:32 出处:网络
i am getting an error Line 31: <asp:LinkButton ID=\"company\" runat=\"server\"OnClick=\"co开发者_StackOverflowmpany_Click\">Companies

i am getting an error

Line 31:

<asp:LinkButton ID="company" runat="server"  OnClick="co开发者_StackOverflowmpany_Click">Companies
Management</asp:LinkButton><br />

that 'ASP.default_master' does not contain a definition for 'company_Click' whereas the code i have written is with the ID companies as

   protected void companies_Click(object sender, EventArgs e)
   {
       Response.Redirect("Companies.aspx");
   }

THe ID company was for a link button that i deleted. i put a new link button with id as companies and wrote this code but i still get the old error. how do i rectify this?


It seems you still have a control that have a event handler associated to the old 'company_Click'.

Try searching for 'company_Click' in all your solution to get rid of it.

0

精彩评论

暂无评论...
验证码 换一张
取 消