webbrowser控件怎样对在线编辑器自动赋值?
网页代码中有这样一段代码:
<div class="" id="comment">发表评论:</div>
<script type="text/javascrpt">
_editor = new webEditor("_editor" , 300, 200);
_editor.init("");
</script>
<input name="button" id=sendComment type="button" onclick="sendComment('blog')" class="btn1" value="发表评论" />
怎样用C#给其中的script代码生成的文本框赋值并提交?在线等,高手来!!!
问题补充:代码没有错误,只是想用webbrowser打开那个网页后自动发表评论并提交。如果文本框有ID就好办了,但是文本框所在的地方只有<script type="text/javascrpt">
_editor = new webEditor("_editor" , 300, 200);
_editor.init("");
</script>
这么一段代码,估计是在线编辑器,不能用常规方法赋值提交,因此想请教,有没有高手有办法解决?