页面加载完成有事件 DocumentCompleted 啊,在其中判断页面名。
解决方案 »
- C# 使用FTP下载文件,文件下载到本地后,文件名被改
- c#/.net如何在程序里获取存储过程返回的结果集?
- 方法传参数问题...等待庖丁解牛
- C#中操作MSMQ,怎么设置事务性?设置事务性后就可以重起计算机以后队列也不消失吧?
- unable to find an appropriate license for this control
- int i=System.Runtime.InteropServices.Marshal.SizeOf(int)哪里错了?
- ***********路过的GGJJ谁了解DataList控件下的按列排序的例子?
- 各位兄弟求救了!
- 寻C#的owc画图表的高人
- 接受不到WM_KEYDOWN消息!!!急
- WPF进程调用问题,界面无法按预期的行为显示
- WPF,这个图形该怎么画?
{ for (int i = 0; i < DS.Tables[0].Rows.Count; i++)
{
if (webBrowser1.Url.ToString() == "http://app.bhxww.com/ad/poll/html/5/5.html")
{
//把控件的值 传给 网站上指定的ID
webBrowser1.Document.GetElementById("form_user").SetAttribute("value", DS.Tables[0].Rows[i][0].ToString()); //把控件的值 传给 网站上指定的ID
webBrowser1.Document.GetElementById("form_im").SetAttribute("value", DS.Tables[0].Rows[i][1].ToString());
webBrowser1.Document.GetElementById("form_submit").InvokeMember("Click");
} }
}
我的代码是这样的