Wrox Programmer Forums
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 September 7th, 2003, 08:20 PM
Authorized User
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mailing List app has more errors - Help

Here is another one.

Please note the html link resulting from the subscribe form:

http://localhost/ThePhileVB/WebModules/MailingLists/Subscribe.aspx?ListId=14&FirstName=david&LastName= soul&Email=oo7_soul@YAHOO.COM&Submit1=Submit&Actio n=Subscribe

This brings up the results page subscribe.aspx with the following:

Welcome to the mailing list DVD
Welcome to the mailing list DVD, dear david soul.
We hope you'll enjoy our news!

- ThePhile.COM

Click the following link to unsubscribe:

Please note that the link to unsubscribe doesn't have the ID numbers.

The New Subscription Email doesn't have the numbers either.

What's going on? Is there a updated version of this code??

How do is fix this?
Old September 7th, 2003, 10:14 PM
Authorized User
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts

I figured out part of my problem: #ListID# is case sensitive.

The Helper.vb class has the following

Public Class Helper
    Inherits Wrox.WebModules.Business.BizObject

    ' Methods
    '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    ' Replace the special list's tags with their values
    ' ---
    Public Shared Function ProcessListTags( _
     ByVal message As String, _
     ByVal listId As Integer) _
     As String

     Dim list As New Business.List(listId)

            message = message.Replace("#ListId#", listId.ToString())

I changed the string value to something that I could remember "#ListID#". If you don't see the difference the ID is uppercase. :D

Now on the settings.aspx form: #SubscribeURL#?ListID=#ListID#&Action=Uns ubscribe&Email=#SubscriberEmail#
will work, however, for those of you that don't won't to change the code, just change the #ListID# to #ListId# on the settings form.

At least now all the values are being past, but this didn't fix the link.

Similar Threads
Thread Thread Starter Forum Replies Last Post
About Mailing List ssomchai BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 May 5th, 2008 10:05 PM
Mailing List Carriemh Beginning PHP 2 September 2nd, 2006 07:17 AM
Newsletter Mailing List Manager PySpencer Beginning PHP 6 December 21st, 2003 07:13 PM
Mailing list module has error - HELP drfunkie BOOK: ASP.NET Website Programming Problem-Design-Solution 3 September 8th, 2003 12:09 PM
mailing list using php dungey PHP How-To 1 June 4th, 2003 02:50 PM

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