troubleshooting Question

ASP.Net Profiles/Session Variables

Avatar of aothomas42
aothomas42Flag for United States of America asked on
.NET ProgrammingC#ASP.NET
6 Comments1 Solution327 ViewsLast Modified:
So i'm trying to move away from Session Variables. In this site I am trying to optimize it uses too many of them. I have been looking into using ASP.Net Profiles instead. I have this example I found but can't seem to get it to work for me. Am hoping someone has seen it or something like it and knows what I can do get it working.

http://www.asp.net/downloads/sandbox/table-profile-provider-samples

In the default.aspx file in the page_load event the below line gives me the error
'The name 'Profile' does not exist in the current context'

txtFirstName.Text = Profle.FirstName;
ASKER CERTIFIED SOLUTION
Anuradha Goli
Anuradha Goli (anuradhay)

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros