Good Morning All

Am trying to Store the username of the User that will be loged on. choose to use the Profile, and i have done the following from the Web Config file

<profile enabled ="true">			<properties>				<add name ="Username" readOnly ="false" allowAnonymous ="true"/>			</properties>		</profile>

And am Storing the Username to the Profile like this

Profile.UserName = username;

I get an error the C# code that says

property or indexer 'System.web.ProfilerBase.Username' cannot be assigned to--it is read only

Thanks

Username is already a property of the profile set to readonly, are you trying to add a property or use the current one?

if you need to add a new property, change it to something else like loggedinuser

Username is already a property of the profile set to readonly, are you trying to add a property or use the current one?

if you need to add a new property, change it to something else like loggedinuser

Thank you very much

It worked