< asp:TextBox ID =" insertprb" ......? Hello,I want to send an email when the Insert button is clicked that includes dataentered on the form. I am using asp.net 2.0 and an insert template. Ireceive the email OK, but there is no subject or body. Please help.Here''s my code:Protected Sub InsertButton_Init(ByVal sender As Object, ByVal e AsSystem.EventArgs)Dim message As New System.Net.Mail.MailMessage()Dim client = New System.Net.Mail.SmtpClient()Dim prb As New String(Request.Form("insertprb"))message.From = New System.Net.Mail.MailAddress("in****@domain.com")message.To.Add(New System.Net.Mail.MailAddress("us**@domain.com"))message.Subject = prbmessage.Body = prbmessage.IsBodyHtml = Trueclient.Send(message)End SubThank you for your time. 解决方案TryDim prb As String = insertprb.TextTryDim prb As String = insertprb.Text- Show quoted text -What''s the ID of your TextBox Control?<asp:TextBox ID="insertprb" ... ? 这篇关于在电子邮件中发送表单数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!