Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在文本框中输入电子邮件地址并按下提交按钮时,我收到以下错误:
错误:参数“地址”不能为空字符串。参数名称:地址
这是我用来设置地址的代码:
Mail_Data.MailTo =Textbox1.Text;
当文本框不为空时会发生此错误。有任何想法吗?
If you are using the mailmessage function then you need to call the Add to add the string
Mail_Data.MailTo.Add(TextBox1.Text);