string target = "http://www.xxx.com";
try
{
System.Diagnostics.Process.Start(target);
}
catch (System.ComponentModel.Win32Exception noBrowser)
{
if (noBrowser.ErrorCode == -2147467259)
MessageBox.Show(noBrowser.Message);
}
catch (System.Exception other)
{
MessageBox.Show(other.Message);
}上面是使用默认浏览器打开一个页面:www.xxx.com。希望能实现自动填表的功能:
如:id="ID1"的输入框自动输入数据"111",id="ID2"自动获得输入焦点。
可以在网页后面加信息来实现吗?【www.xxx.com?......】这样子。
try
{
System.Diagnostics.Process.Start(target);
}
catch (System.ComponentModel.Win32Exception noBrowser)
{
if (noBrowser.ErrorCode == -2147467259)
MessageBox.Show(noBrowser.Message);
}
catch (System.Exception other)
{
MessageBox.Show(other.Message);
}上面是使用默认浏览器打开一个页面:www.xxx.com。希望能实现自动填表的功能:
如:id="ID1"的输入框自动输入数据"111",id="ID2"自动获得输入焦点。
可以在网页后面加信息来实现吗?【www.xxx.com?......】这样子。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货