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 August 24th, 2007, 01:48 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
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

  #2 (permalink)  
Old August 24th, 2007, 03:27 AM
Registered User
 
Join Date: May 2007
Location: , , .
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!

  #3 (permalink)  
Old August 24th, 2007, 04:54 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Creetown, UK
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
  #4 (permalink)  
Old August 24th, 2007, 05:22 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
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

  #5 (permalink)  
Old August 24th, 2007, 05:26 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
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


  #6 (permalink)  
Old September 24th, 2007, 06:02 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
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

  #7 (permalink)  
Old September 24th, 2007, 01:15 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Copenhagen, , Denmark.
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/
 


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
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



All times are GMT -4. The time now is 06:29 AM.


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