Is there an OO way to access all the profiles/membership info

G

Guest

I have an e-newletter that I send out. I want to develop a myWSDesigns page
that includes a preference for whether someone is a subscriber or not. I've
actually developed the page successfully, using both the membership controls
and the Profile object with a Subscribe property. Everything seems to persist
the way it should.

So, now my question is, what do I do when it's time to send out the
newsletter? I can see how I could write a join of the aspnet_Membership table
and aspnet_Profile table to extract the email address from the former and the
Subscribe status from the latter, and then loop through a data reader based
on that. But I'm wondering if that's the best way to do that, or if there's
some more OO method based on the Membership and Personalization frameworks
that allows me to loop through some sort of Profiles collection (which
probably exists, but I can't seem to find) or a Members collection to extract
this data. You know, something like:

foreach (Member m in Members)
if (m.Profile.Subscribe)
sendNewsletterTo(m.email)

Am I dreaming, or just missing something?

Thanks for any help you can offer.
 

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,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top