Adding Profile
-
Hi, I am trying to add Profile to my website.but I am getting the following error. "Error 1 'Profile': member names cannot be the same as their enclosing type c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\testasp1\0b2a55cc\f7eb3a0e\App_Web_ztqjfh18.0.cs " Please help me to fix it.
Sunil Nair
-
Hi, I am trying to add Profile to my website.but I am getting the following error. "Error 1 'Profile': member names cannot be the same as their enclosing type c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\testasp1\0b2a55cc\f7eb3a0e\App_Web_ztqjfh18.0.cs " Please help me to fix it.
Sunil Nair
This means that you have a property or method that has the same name as the class it is in, so I would expect that your class looks something like this:
public class Profile { public string Profile // This is the error. { get { return _profile; } } }
A quick search of google would have revealed the answer to this (or even reading the MSDN).
Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.