Im having problems implementing user controls for an ASP.NET site i wish to create.
I would like to take you throught the process i took, can anyone please tell me where i went wrong.
First I ran the aspnet_regsql.exe wizard and I provided details to connect to a SQL Express database that i have created. After doing this, I checked the machine.config, and there where no changes made to add the DB as a profile provider. Then I added this to my web.config:
<add name="Name" type="System.String" />
<add name="Surname" type="System.String" />
I then ran the web application. From what I've read, this should add a dynamically created class callled ProfileCommon, and the i should be able to access the profile properties like this:
Profile.Name = TextBox1.Text;
For some reason I can never access the properties created in the web.config using Profile.Name... The ProfileCommon class doesnt seem to be dynamically created.
I've tried this using VS 2008 express (.NET 3.5 sp 1) and VS 2010 Express (.NET 4)
Can anyone please tell me what im doing wrong?
View Complete Post