Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
m encountring a problem while uploading and saving a image , ERROR is following :
CS0542: 'Profile': member names cannot be the same as their enclosing type....

i have done coding according to this link :

file:///D:/fileupload-control-save-images-database.html


help me , how to resolve this problem ....
Posted
Updated 30-Jun-11 1:10am
v3

1 solution

http://msdn.microsoft.com/en-us/library/hdhfk2xk(v=vs.80).aspx[^] is the link to your error message. If you were to bother with searching, it explains it all. Which is good, given how impossible it is to correct code you didn't bother to post.

This has nothign to do with saving images. It has to do with your member name being 'Profile', which is also the name of the enclosing type. Read the webpage for an explanation, and in future, if you want us to fix your code, you need to post 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