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 August 24th, 2007, 01:48 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default subscription type in newsletter

Hi,

How can I make sure that the subscription type is set to HTML by default.
If i put defaultValue="Html" in my webconfig, I get an error.

tnx

koen

 
Old August 24th, 2007, 03:27 AM
Registered User
 
Join Date: May 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had this problem - setting default values in web.config, in the userprofile control drop down list and in the database all don't seem to do it - I think it's do with the fact that the value in the database is null when the control loads for the first time.
In the end I just wrote a couple of lines to run after the CreateUserWizard to set the value of the mailing preference in the user's profile and save it - i.e. set it programmatically as soon as your user account is created and before they go on to enter their other details.

But if anyone has a more elegant solution, let's hear it!

 
Old August 24th, 2007, 04:54 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default

Vantoko (off topic),

How did your tagging solution come along?? I've implemented a TagCloud against my searches, perhaps not what you were trying to achieve, but nonetheless, quite informative. take a look below to see if it's in the 'ballpark' of what you were hoping to achieve:

http://www.originaltalent.com/Search...D=0&mode=False

jimi

http://www.jamestollan.com
 
Old August 24th, 2007, 05:22 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

Hi,

can you post the code here ?

tnx

koen

 
Old August 24th, 2007, 05:26 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

Hi jimi,

I add my tags to my articles, but your search cloud is also interesting to add on a search screen this will provide extra info to the users.

My search cloud will be online in a couple of weeks (I totally redesigned my site :)

koen


 
Old September 24th, 2007, 06:02 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

I still cannot set the default to HTML.
does anyone have ANY idea on how I can solve this ?

tnx

koen

 
Old September 24th, 2007, 01:15 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 143
Thanks: 0
Thanked 1 Time in 1 Post
Default

Isn't it just a matter of going into the UserProfile.ascx file, and changing the dropdownlist code to this:

            <asp:DropDownList runat="server" ID="ddlSubscriptions">
                <asp:ListItem Text="No subscription" Value="None" />
                <asp:ListItem Text="Subscribe to plain-text version"
                    Value="PlainText" />
                <asp:ListItem Text="Subscribe to HTML version" Value="Html" Selected="True" />
            </asp:DropDownList>

?

Forgot to add. I can't really test this. I completely removed the profile step from my CreateUserWizard to ensure I can send my new users an Email verification link...

http://entropia-online.blogspot.com/





Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Subscription issue srinivasae BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 March 23rd, 2006 10:21 AM
Newsletter sydneyausguy BOOK: Professional DotNetNuke ASP.NET Portals ISBN: 0-7645-9563-6 1 August 19th, 2005 05:23 PM
Where is my subscription mail? richard.york Forum and Wrox.com Feedback 3 September 8th, 2003 02:44 PM





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