p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET Website Programming Problem-Design-Solution (http://p2p.wrox.com/forumdisplay.php?f=23)
-   -   Mailing List app has more errors - Help (http://p2p.wrox.com/showthread.php?t=3583)

drfunkie September 7th, 2003 08:20 PM

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?

drfunkie September 7th, 2003 10:14 PM

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.

All times are GMT -4. The time now is 11:53 PM.

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