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

后端 未结 5 1223
悲哀的现实
悲哀的现实 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:37

    You need to use runat="server" like this:

    
    

    You can use the runat=server attribute with any standard HTML element, and later use it from codebehind.

提交回复
热议问题