Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'ASP.masterpage_master' does not contain a definition for 'loginbtn_Click' and no extension method 'loginbtn_Click' accepting a first argument of type 'ASP.masterpage_master' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 237:    <br />
Line 238:    <br />
Line 239:    <asp:Button ID="loginbtn" runat="server" CssClass="logInButtonStyle"
Line 240:        Text="Log In" OnClick="loginbtn_Click" />
Line 241:    <br />



/////////////////////////////////////////////////

Though I've written code for Click event, I'm getting this kinda error while runtime...

All the suggestions are welcomed... :)
Posted

Error speaks all. Looks like incorrect usage of MasterPages.

Read, learn and try:
MSDN: ASP.NET Master Pages[^]
ASPNET: ASP.NET Master Pages Tutorials[^]
ASP.NET 2.0 Master Pages[^]
 
Share this answer
 
Please try commenting the complete event handler and recreate the event handler from the designer window by double clicking the button.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900