Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 19th, 2007, 02:27 PM
Authorized User
 
Join Date: Jun 2007
Location: , , Portugal.
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Where is the newsletter option

Hello all,
can someone tell me where is stored (wich table and field) the indication that each user gives when registers in your site, telling if s/he wants to receive the newsletter or not.
Thank you.
Luis J.


  #2 (permalink)  
Old July 19th, 2007, 04:57 PM
Friend of Wrox
 
Join Date: Mar 2006
Location: , , Portugal.
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default






Code:
web.config:
(...)
    <profile defaultProvider="TBH_ProfileProvider">
      <providers>
        (...)
      </providers>
      <properties>
        (...)
        <group name="Preferences">
          (...)
          <add name="Newsletter" type="MB.TheBeerHouse.BLL.Newsletters.SubscriptionType"/>
        </group>
      </properties>
    </profile>
(...)
#!#!#!##!!#!#!#!#!#!#!#!#

Namespace MB.TheBeerHouse.BLL.Newsletters
    Public Enum SubscriptionType As Integer
        None = 0
        PlainText = 1
        Html
    End Enum
End Namespace
  #3 (permalink)  
Old July 20th, 2007, 01:40 PM
Authorized User
 
Join Date: Jun 2007
Location: , , Portugal.
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Maxxim






Code:
web.config:
(...)
    <profile defaultProvider="TBH_ProfileProvider">
      <providers>
        (...)
      </providers>
      <properties>
        (...)
        <group name="Preferences">
          (...)
          <add name="Newsletter" type="MB.TheBeerHouse.BLL.Newsletters.SubscriptionType"/>
        </group>
      </properties>
    </profile>
(...)
#!#!#!##!!#!#!#!#!#!#!#!#

Namespace MB.TheBeerHouse.BLL.Newsletters
    Public Enum SubscriptionType As Integer
        None = 0
        PlainText = 1
        Html
    End Enum
End Namespace
OK Maxxim,
obrigado.
Mas o que eu queria mesmo saber é como alterar manualmente a preferência de cada um dos utilizadores que se inscreveu/registou no meu site e seleccionou, por exemplo, Subscrevo em Inglês (a newsletter) para Subscrevo em Português. Ou outra coisa/opção deste género que o utilizador "preferiu" quando se registou.
Se souber dizer-me como fazer/onde ir mexer, agradecia.
Grato.
Luis J.

Luis J.

  #4 (permalink)  
Old July 20th, 2007, 03:16 PM
Friend of Wrox
 
Join Date: Mar 2006
Location: , , Portugal.
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Luís...

It's better if you write in english in order to all people can understand!

I think we are only 3 guys (portuguese).

I'm programming my application but I passed over this part.

Go to your ascx control -> profile.ascx

See how it was made for language, gender, etc... And make the same for newsletters.
Maybe you'll need to add one textbox/dropdown and one label to do so.

By this way When page is called the newsletter info for this user goes to this textbox or dropdown and when you click in "update" you need to add something like thismember.profile.NewsLetter = dpNewsLetter.selectedValue

(something like this)

In a couple of days I'll need to do something like this.
I will explain this better.

But if you solve your problem write something here...
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Check Boxes/Option buttons/Option Group hewstone999 Access VBA 1 March 14th, 2008 07:25 AM
Newsletter Mechanism vivek_inos ASP.NET 1.0 and 1.1 Professional 1 September 22nd, 2007 07:38 AM
newsletter vantoko BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 February 28th, 2007 03:28 AM
Newsletter sydneyausguy BOOK: Professional DotNetNuke ASP.NET Portals ISBN: 0-7645-9563-6 1 August 19th, 2005 05:23 PM
help with newsletter question AStuntz Beginning PHP 1 May 13th, 2004 06:54 PM



All times are GMT -4. The time now is 06:07 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.