Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 19th, 2007, 02:27 PM
Authorized User
 
Join Date: Jun 2007
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.


 
Old July 19th, 2007, 04:57 PM
Friend of Wrox
 
Join Date: Mar 2006
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
 
Old July 20th, 2007, 01:40 PM
Authorized User
 
Join Date: Jun 2007
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.

 
Old July 20th, 2007, 03:16 PM
Friend of Wrox
 
Join Date: Mar 2006
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...





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.