Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have this error pls solve it i try but not succeeded

CSS
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.frontdesk_masters_medicalrepresentativemaster_aspx' does not contain a definition for 'btnSave_Click' and no extension method 'btnSave_Click' accepting a first argument of type 'ASP.frontdesk_masters_medicalrepresentativemaster_aspx' could be found (are you missing a using directive or an assembly reference?)

Source Error:



Line 285:                                <asp:Panel ID="Panel3" runat="server">
Line 286:                                    &nbsp;
Line 287:                                    <asp:Button ID="btnSave" runat="server" CssClass="FormStyleButtonAct" OnClick="btnSave_Click"
Line 288:                                        AccessKey="s" Text="Save" />
Line 289:                                    &nbsp;&nbsp;
Posted
Comments
Does your code behind contains definition for btnSave_Click() ??? Check it....
Nilesh Patil Kolhapur 30-Jan-12 7:50am    
yes

Looks like there is no btnSave_Click method in your code behind.

Good luck!
 
Share this answer
 
Comments
Nilesh Patil Kolhapur 30-Jan-12 7:32am    
sry btnSave_Click event present in code behind
Nilesh Patil Kolhapur 30-Jan-12 7:49am    
i remove button also code behind code but still same error occured
<asp:button id="btnSave" runat="server" cssclass="FormStyleButtonAct" onclick="btnSave_Click" xmlns:asp="#unknown">
</asp:button>

Remove the btnSave_Click event from the aspx page.
 
Share this answer
 
Comments
Nilesh Patil Kolhapur 30-Jan-12 7:32am    
k ill try
Nilesh Patil Kolhapur 30-Jan-12 7:49am    
i remove button also code behind code but still same error occured
You have not implemented the event at code behind "btnSave_Click"
 
Share this answer
 
Your .aspx.cs page does not inherit from the code behind page where you have written the event. Check it...
 
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