I am getting an error that makes complete sense, but makes no sense to me as to why I am getting it..
My error is Conversion from String to type Double is not valid. I have debugged this and every value is in " " and I could not see anything that would possibly try to be converted to a Double, other than the two cost fields I have, so I place a ToString() on them and it still isn't liking it. I am building a table to attach to the body of an email is the end product of this code below. Can someone please explain to me why I am getting the above error?
Dim body as String
Dim param As Object() = New Object() { _
drpDownLstEnt.SelectedValue(), _
txtBoxEligibility.Text, _
txtBoxCondition.Text, _
approverType, _
txtBoxNameOfApprover.Text, _
txtBoxOriginatorResults.Text, _
txtBoxDate.Text, _
drpDownLstNameNumber.SelectedValue(), _
lblInternalNameList.Text, _
lblExternalNameList.Text, _
txtBoxTotalAttendees.Text, _
txtBoxCustBeingEnt.Text, _
txtBoxEstCost.Text, _
txtBoxCostPerPerson.Text, _
txtBoxLocation.Text, _
txtBoxNameOfEst.Text, _
txtBoxComments.Text}
body= String.Format("<table><tr><td>Field 0</td><td>{0}</td></tr>" _
+ "<tr><td>Field 1</td><td>{1}</td></tr>" _
+ "<tr><td>Field 2</td><td>{2}</td></tr>" _
+ "<tr><td>Field 3</td><td>{3}</td></tr>" _
+ "<tr><td>Field 4</td><td>{4}</td></tr>" _
+ "<tr><td>Field 5</td><td>{5}</td></tr>" _
+ "<tr><td>Field 6</td><td>{6}</td></tr>" _
+ "<tr><td>Field 7</td><td>{7}</td></tr>" _
+ "<tr><td>Field 8</td><td>{8}</td></tr>" _
+ "<tr><td>Field 9</td><td>{9}</td></tr>" _
+ "<tr><td>Field 10</td><td>{10}</td></tr>" _
+ "<tr><td>Field 11</td><td>{11}</td></tr>" _
+ "<tr><td>Field 12</td><td>{12}</td></tr>" _
+ "<tr><td>Field 13</td><td>{13}</td></tr>" _
+ "<tr><td>Field 14</td><td>{14}</td></tr>" _
+ "<tr><td>Field 15</td><td>{15}</td></tr>" _
+ "<tr><td>Field 16</td><td>{16}</td></tr></table>", _
param)
message.Body = (currentUser + vbCrLf + vbCrLf + _
"Here is your Form ID for the form that was submitted on " _
+ emailTimeStamp _
+ ". You will also see a copy of your completed form below." _
+ vbCrLf + vbCrLf + "Form ID: " + formID + vbCrLf + vbCrLf _
+ "Completed Form:" + vbCrLf + vbCrLf + emailBody)
drpDownLstEnt.SelectedValueis a property not a method. Remove the (). Also fordrpDownLstNameNumber</table>, param), I'm thinking you intended</table>", param)