I have the following in my web.config:
<system.web>
<profile defaultProvider ="MyASPSqlProfi leProvider" enabled="true" >
<properties>
<add name="FirstName " defaultValue="" type="string"/>
<add name="MiddleIni tial" defaultValue="" type="string" />
<add name="LastName" defaultValue="" type="string"/>
<add name="Address1" defaultValue="" type="string"/>
<add name="Address2" defaultValue="" type="string"/>
<add name="City" defaultValue="" type="string"/>
<add name="State" defaultValue=""/>
<add name="Country" defaultValue="" type="string"/>
<add name="PostalCod e" defaultValue="" type="string"/>
<add name="Phone" defaultValue="" type="string"/>
<add name="NewsLette rOK" defaultValue="t rue" type="bool"/>
<add name="LastOrder " defaultValue="" type="System.Da teTime"/>
</properties>
</profile>
When I compile, I don't get a Profile class. If I try to use it anyway
I get compiler errors. What am I doing wrong?
Using VS2008.
Every site I visit says you simple add <profilewith some properties
and VS will generate the Profile class for you.
Thanks,
Steven
<system.web>
<profile defaultProvider ="MyASPSqlProfi leProvider" enabled="true" >
<properties>
<add name="FirstName " defaultValue="" type="string"/>
<add name="MiddleIni tial" defaultValue="" type="string" />
<add name="LastName" defaultValue="" type="string"/>
<add name="Address1" defaultValue="" type="string"/>
<add name="Address2" defaultValue="" type="string"/>
<add name="City" defaultValue="" type="string"/>
<add name="State" defaultValue=""/>
<add name="Country" defaultValue="" type="string"/>
<add name="PostalCod e" defaultValue="" type="string"/>
<add name="Phone" defaultValue="" type="string"/>
<add name="NewsLette rOK" defaultValue="t rue" type="bool"/>
<add name="LastOrder " defaultValue="" type="System.Da teTime"/>
</properties>
</profile>
When I compile, I don't get a Profile class. If I try to use it anyway
I get compiler errors. What am I doing wrong?
Using VS2008.
Every site I visit says you simple add <profilewith some properties
and VS will generate the Profile class for you.
Thanks,
Steven
Comment