D
DN
Is it possible to use Missing.Value in C#, or is that just a VB
concept?
I'm using Persits ASPEmail component in an ASP.NET page, and their
sample code shows something like this:
<%@ Page language="C#" %>
<%@ import namespace=AspEmail %>
<%@ Import Namespace="System.Reflection" %>
<%
AspEmail.MailSenderClass myMail = new AspEmail.MailSenderClass();
myMail.AddAddress(Request.QueryString["email"].Trim(), "");
...other properties set...
myMail.Send(Missing.Value);
%>
The myMail.Send line always gives "System.NullReferenceException:
Object reference not set to an instance of an object" no matter what I
pass in.
I'm starting to think the way I tlbimp'd the DLL must have been wrong,
but
there just aren't that many options? What else could I be doing
wrong??
Thanks in advance for any ideas.
D
concept?
I'm using Persits ASPEmail component in an ASP.NET page, and their
sample code shows something like this:
<%@ Page language="C#" %>
<%@ import namespace=AspEmail %>
<%@ Import Namespace="System.Reflection" %>
<%
AspEmail.MailSenderClass myMail = new AspEmail.MailSenderClass();
myMail.AddAddress(Request.QueryString["email"].Trim(), "");
...other properties set...
myMail.Send(Missing.Value);
%>
The myMail.Send line always gives "System.NullReferenceException:
Object reference not set to an instance of an object" no matter what I
pass in.
I'm starting to think the way I tlbimp'd the DLL must have been wrong,
but
there just aren't that many options? What else could I be doing
wrong??
Thanks in advance for any ideas.
D