且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Forms.WebBrowser通过C#将文本插入textarea

更新时间:2023-02-08 17:00:49

< textarea id = "  foo" runat =  服务器" >  </  textarea  > 


然后使用此适当的InnerText
对于HTML标记,请使用InnerHtml

 foo.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 InnerHtml

foo.InnerText = "  ";


Look here, http://***.com/questions/4508051/textarea-control-asp-net-c-sharp[^]