更新时间:2023-02-08 17:00:49
< textarea id = " foo" runat = 服务器" > </ textarea >
然后使用此适当的InnerText
对于HTML标记,请使用InnerHtmlfoo.InnerText = " ;
查看此处, http://***.com/questions /4508051/textarea-control-asp-net-c-sharp [ ^ ]
Suppose I had the following HTML:
<html>
<body>
<textarea id="foo"></textarea>
</body>
</html>
How to insert Text
into the TextArea
through C# Htmldocument
?
The SetAttribute()
method is not working as there is no value field for TextArea
So how to insert Text
into TextArea
through C#?
Any advice is much appreciated!
Thanks in advance.
<textarea id="foo" runat="server"></textarea>
Then use this propriety InnerText
and for applying HTML tags use InnerHtmlfoo.InnerText = " ";
Look here, http://***.com/questions/4508051/textarea-control-asp-net-c-sharp[^]