开发者

error for click events

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜