How do I reference the input of an HTML <textarea> control in codebehind?

后端 未结 5 1181
悲哀的现实
悲哀的现实 2020-12-15 14:53

I\'m using a textarea control to allow the user to input text and then place that text into the body of an e-mail. In the code behind, what is the syntax for referencing the

5条回答
  •  时光说笑
    2020-12-15 15:30

    You should reference the textarea ID and include the runat="server" attribute to the textarea

    message.Body = TextArea1.Text;  
    

    What is test123?


提交回复
热议问题