About
Pricing
Community
Teams
Start Free Trial
Log in
jr_bautista
asked on
2/27/2009
Profile object does not return value (Personalization in ASP.Net)
I have this on my web.config file
<profile enabled="true">
<properties>
<add name="firstname" />
</properties>
</profile>
and in my C# code to store value:
Profile.firstname = firstname.Text;
and it does not returning value with this, the intellisense recognize the profile properties
Response.Write(Profile.fir
stname)
What's the problem?
ASP.NET
8
5
Last Comment
jr_bautista
8/22/2022 - Mon
SOLUTION
guru_sami
2/27/2009
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jr_bautista
2/27/2009
ASKER
I tried to add that Save but to no avail....
SOLUTION
guru_sami
2/27/2009
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jr_bautista
2/27/2009
ASKER
It hangs when getting the profile. I think it's not saving to the database, I have the folder app_data and nothing is there. How can I specify to which table and MS SQL server it should save?
SOLUTION
guru_sami
2/27/2009
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
jr_bautista
2/27/2009
ASKER
still no value...
this is my connectionString
<connectionStrings>
<add name="MyConnectionString" connectionString="Data Source=SQLxxx; Initial Catalog=MyDB;Persist Security Info=True;User ID=iisuser;Password=12345x
xx" providerName="System.Data.
SqlClient"
/>
</connectionStrings>
In your code I substituted "YourConnectionStringName"
to "MyConnectionString"
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
SOLUTION
guru_sami
2/27/2009
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
jr_bautista
4/3/2009
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.