Hello all,

I am having problem porting some of my old codes to the new framework and the new visual studio, like the Profile.<Field> info:

Here is a snippet of my old Web.config:

Code:
<profile>
	<properties>
		<add name="Title" />
		<add name="Forename" />
		<add name="Surname" />
		<add name="Initials" />
	</properties>
</profile>
I have ported it exactly the same way in the new VS and but it can't seem to recognise the following code behind my asp page:

Code:
txtInitials.Text = Profile.Initials;
Any ideas what I'm doing wrong / what I have missed in the new frameworks?

Thanks,

Greyskull