3
Vote

Subscribers/Add error

description

Hi, when you try to add new email address you have an error in SubscriberMember because you read Email value from property
 
public string Email
    {
        get
        {
            return DataRow["Email"].ToString();
        }
        set
        {
            _email = value;
        }
    }
 
but the object DataRow at this point is null!

comments

albchia wrote Nov 17, 2008 at 4:47 PM

Substitute line 102 of Subscriber.cs:
//SqlString = String.Format(SqlString, this.Email.Replace("'", "''"), Utils.GetTimeStamp());

with

SqlString = String.Format(SqlString, this._email.Replace("'", "''"), Utils.GetTimeStamp());

wrote Nov 17, 2008 at 4:49 PM

wrote Oct 25, 2009 at 12:21 PM

wrote Feb 14, 2013 at 12:18 AM