Click here to Skip to main content
15,915,810 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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: CS0111: Type '_Default' already defines a member called 'Page_Load' with the same parameter types

C#
Source Error:
Line 11: public partial class _Default : System.Web.UI.Page
Line 12: {
Line 13:     protected void Page_Load(object sender, EventArgs e)
Line 14:     {
Line 15: 


hey m getting this type of error plz give me solution
Posted
Updated 4-Mar-12 12:40pm
v2

Look at the error message:
Type '_Default' already defines a member called 'Page_Load' with the same parameter types

Now look at your code - you will find at least two versions of the Page_Load" method. Combine them, or delete until you only have the one.
 
Share this answer
 
Comments
sankyn1 4-Mar-12 7:27am    
but from where if i remove it it will also give the error
#realJSOP 4-Mar-12 7:32am    
5 - proposed as answer
OriginalGriff 4-Mar-12 7:44am    
I can't read your hard disk, I can't see your screen. I can't read your mind.
I think you are going to have to look for yourself...
Mohammad A Rahman 4-Mar-12 18:39pm    
To the point :)
In addition to the solution 1,
1) you will find the "Page_Load" method in the code behind of your page. For example, if your page name is "A.aspx" then the code behind will be "A.aspx.cs".

2) While you are in the code behind file hit the Ctrl + F then you will see the Find Dialog and type "Page_Load" and hit enter.

3) Now follow the instruction mentioned in the Solution 1 please.

Hope it helps :)
 
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