Click here to Skip to main content
15,665,276 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi, this is vijayadurga, I got an error in program,
Error 5 Type 'payment' already defines a member called 'Page_Load' with the same parameter types

how to solve this program
Shemeer NS 1-Jul-12 11:33am    
You may have copied this file and renamed. so the same method exists for the payment class. if this is not your case post your code here with the steps ....

Every page you add is automatically configured to namespace depending on your folder structure. I don't see enough code and structure, but are you sure, that you don't have the Page_Load defined twice? At least the error message says so. Does it behave same even when you use different class name than _Default ?

After edits:

You are having two aspx files with same class name "payment". While coping the files in you should rename the file names as well as class names in aspx.cs file.
All the best.
Share this answer
you defined one more "payment",
search ,and rename
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