Using profile in a Class

G

Guest

Im accessing my profile in a Class using:

Dim P As ProfileBase = HttpContext.Current.Profile
Dim myInt As Integer = P.GetPropertyValue("myProfileId")

All is working fine, however how do I use the
profile.myProfile.items.clear() method in a Class?

Any thoughts?

Thanks James
 
G

Guest

Forgot to mention - MyProfile values come from a custom class for the storage
of list items (values from a checkBoxlist).

This seems to work:

Dim P As ProfileBase = HttpContext.Current.Profile
Dim myVariable As ProfileCommon = P
myVariable.MyProfile.items.Clear()

Can anyone comment???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,607
Members
45,241
Latest member
Lisa1997

Latest Threads

Top