c# - Access Email Address from DetailView -
I am trying to access the email address in Therefore, the code is stopping on this line and I have received the error: I can not help but note that the "myemail" quote in your code Has: Try changing it to the following? referenced In addition, use the debugger DetailsView , but getting this error
textbox email address = this. Delivery view 1. Fund control ("email") as text box; String myemail = EmailAddress.Text; System.Net.Mail.MailMessage Mail Message = New System.Net.Mail.MailMessage (); MailMessage.From = New System.Net.Mail.MailAddress (System.Configuration.ConfigurationManager.AppSettings ["From Email Address"]); MailMessage.To.Add (New System.Net.Mail.MailAddress ("myemail")); // error
mail message. To add (new system .net.mail.mailAddress ("myemail"));
mail message. To add (new system.net.mail.mail adress ("myemail"));
mail message. To add (new system.netmail.mail adress myemail);
string myemail = EmailAddress.Text;
Comments
Post a Comment