Accessing Profile Object from Behug Bug Code? (ASP.NET 2.0 Provider Model)
I am playing w / ASP.NET Membership, Roles and Profile Provider. That being said, I recently created a Microsoft Sample Custom Provider Profile Provider (see http://www.asp.net/downloads/sandbox/table-profile-provider-samples/ )
When I run the test solution, I have programmatic access to the profile variables. That is, I can type "Profile". in the code behind and Intellsense will give me access to my profile profile variables (setting in web.config file) ... LastName, FirstName, Age, etc.
However, when I set up the same script in my own solution and type in Profile. in the code, it doesn't recognize the object in IntelliSense and won't compile if I type it myself.
It says ... If I type <% = Profile. in the VS frontend gives me what I'm looking for (Intellisense front end appears with my profile variables being defined)
Has anyone else had this problem / Know the solution
Thank!
-Mike
source to share