例如以下html:
<html>
<head>
<title>无标题页</title> <script src="jquery-1.8.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("#Hidden1").val("123");
});
</script>
</head>
<body>
<input id="Hidden1" type="hidden" />
</body>
<html>
请问,在winform中使用webbrowser怎么获取html中的input(hidden)的value值WinForm
<html>
<head>
<title>无标题页</title> <script src="jquery-1.8.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("#Hidden1").val("123");
});
</script>
</head>
<body>
<input id="Hidden1" type="hidden" />
</body>
<html>
请问,在winform中使用webbrowser怎么获取html中的input(hidden)的value值WinForm
解决方案 »
- 内嵌REPEATER的ItemDataBound事件问题
- 是否可以用"冒泡排序"的方法排序DataSet的DataTable中行的顺序
- Socket 服务器端怎么知道客户端是否已经断开
- 如何把一个string型的变量存为一个html文件?
- 请教WebService中的二个小问题,高手请指点
- C#和MYSQL数据库连接的问题!
- DATAGRIDVIEW 问题
- C#工程不需要编译,直接打包成安装exe文件
- 有没有人用过mysqldrivercs 我怎么不能用?
- ado.net 中,怎样对非主键列实现find 功能? 对任意列实现增量查找seek? thanks!
- 将word作为数据源可以吗????????
- 数据插入的高层次使用
private void PrintHelpPage()
{
// Create a WebBrowser instance.
WebBrowser webBrowserForPrinting = new WebBrowser(); // Add an event handler that prints the document after it loads.
webBrowserForPrinting.DocumentCompleted +=
new WebBrowserDocumentCompletedEventHandler(PrintDocument); // Set the Url property to load the document.
webBrowserForPrinting.Url = new Uri(@"\\myshare\help.html");
}private void PrintDocument(object sender,
WebBrowserDocumentCompletedEventArgs e)
{
// Print the document now that it is fully loaded.
((WebBrowser)sender).Print(); // Dispose the WebBrowser now that the task is complete.
((WebBrowser)sender).Dispose();
}代码来自msdn:
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.documentcompleted.aspx