Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Is there an OO way to access all the profiles/membership info

Thread Tools

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

Posts: n/a
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)

Am I dreaming, or just missing something?

Thanks for any help you can offer.

Warren Sirota
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Parsing Binary Structures; Is there a better way / What is your way? Paul Rubin Python 5 08-06-2009 08:06 AM
Is there a easy way to get complete info about JSTL and EL? lightning Java 7 03-18-2008 01:32 AM
is the philips 642 still the best for playing avi,divx,xvid off a dvd or is there a newer better model any and all info welcome DVD Video 2 06-23-2006 03:03 PM
Is there a way with Linux x86 to report a way the current stack trace for a thread? C++ 4 10-20-2005 09:43 PM
Is there a way to send info to another page without posting or using querystring? Alan Silver ASP .Net 6 09-19-2005 01:29 PM