|
View Message
| Contact Name: |
Steven Mather |
| Message Date: |
3/13/2010 6:31:56 AM |
| Subject: |
RE: How do you get EmailVerify.Verify to take a desired tabel |
Message:
I figured out my problem. It had more to do with my lack of knowledge of C# and the built in DataSet, TableAdapter, and BindingSource objects created when you add a data source.
I had to define a query in the Edit Data Set Diagram screen using the 'GetDatasxxxx' type of method instead of 'Fillxxxx'method. Then using the associated TableAdapter to run the query and return a DataTable.
Example:
Create query and name it GetEmailsbyCustID
To use the result set in code to do a bulk verify on a data table:
DataTable mEmails = this.CustIDTableAdapter.GetEmailsbyCustID(); ev.Verify(mEmails, "email", VerifyLevel.SmtpSendAttempt, 30);
|
|
|