在火狐的firebug显示
<form id="activity-form" class="activity" enctype="application/x-www-form-urlencoded" action="/index.php/activity/index/post" method="post">
<div id="compose-container" class="compose-container">
<div id="input_1320044614274" class="compose-content" contenteditable="true" style="display: block;">
Prevents the browser from following the link.
<br>
</div>
<label class="overTxtLabel" style="line-height: normal; position: absolute; cursor: text; left: 4px; top: 2px; display: none;" for="input_1320044614274">Post Something...</label>
<textarea id="activity_body" class="compose-textarea" name="body" rows="1" cols="1" style="display: none;"></textarea>
</div>
<input type="hidden" value="/index.php/members/home" name="return_url">
<div id="compose-menu" class="compose-menu" style="">
</form>源码
<div class="activity-post-container"> <form method="post" action="/index.php/activity/index/post" class="activity" enctype="application/x-www-form-urlencoded" id="activity-form">
<textarea id="activity_body" cols="1" rows="1" name="body"></textarea>
<input type="hidden" name="return_url" value="/index.php/members/home" />
<div id="compose-menu" class="compose-menu">
<button id="compose-submit" type="submit">Share</button>
</div> </form>
在winfrom对WebBrowser内textarea 赋值无效果
HtmlElement activity_body = WebLink.Document.GetElementById("activity_body");
if (activity_body != null)
{
activity_body.InnerText = "A good way to find.";
}
求助
<form id="activity-form" class="activity" enctype="application/x-www-form-urlencoded" action="/index.php/activity/index/post" method="post">
<div id="compose-container" class="compose-container">
<div id="input_1320044614274" class="compose-content" contenteditable="true" style="display: block;">
Prevents the browser from following the link.
<br>
</div>
<label class="overTxtLabel" style="line-height: normal; position: absolute; cursor: text; left: 4px; top: 2px; display: none;" for="input_1320044614274">Post Something...</label>
<textarea id="activity_body" class="compose-textarea" name="body" rows="1" cols="1" style="display: none;"></textarea>
</div>
<input type="hidden" value="/index.php/members/home" name="return_url">
<div id="compose-menu" class="compose-menu" style="">
</form>源码
<div class="activity-post-container"> <form method="post" action="/index.php/activity/index/post" class="activity" enctype="application/x-www-form-urlencoded" id="activity-form">
<textarea id="activity_body" cols="1" rows="1" name="body"></textarea>
<input type="hidden" name="return_url" value="/index.php/members/home" />
<div id="compose-menu" class="compose-menu">
<button id="compose-submit" type="submit">Share</button>
</div> </form>
在winfrom对WebBrowser内textarea 赋值无效果
HtmlElement activity_body = WebLink.Document.GetElementById("activity_body");
if (activity_body != null)
{
activity_body.InnerText = "A good way to find.";
}
求助
解决方案 »
- winfrom 怎么将本地多个文件上传到 服务器上
- 弱弱的问一下`昵称在哪里改 - -别删我贴啊``我的结贴率现在好低
- c# 智能提示的实现,我是想在richtextbox里实现和VS一样的智能提示功能,应该怎么做呢?希望有代码
- 高手请看!下面代码有什么问题,为什么报错:“该字符串未被识别为有效的 DateTime”
- 变量赋值
- 怎样按下鼠标 拖动鼠标的时候 画虚巨形!!????
- 如何在数据库中搜索给定的任意关键词
- 谁能帮我解决窗体隐藏的问题!!
- 如何使文本框textBox不回显
- 哪有c#下载?谢谢
- C#通过API控制鼠标移动,XP无法进入屏保,WIN7却可以进入气泡屏保,为何?
- C# 要使用DevExpress中做一个图形报表?
HtmlElement el = web.Document.GetElementById("activity_body");
el.SetAttribute("value", "aaaaaaaaaaaaaaa");用这个赋值
HtmlElement activity_body = WebLink.Document.GetElementById("activity_body");
if (activity_body != null)
{
activity_body.InnerText = "A good way to find.";
// activity_body.SetAttribute("value", "A good way to find.");
}都试过了还是不行。
你可以看下