c#之webBrowser的用法

时间:2009-03-05    点击:2320   

            HtmlDocument vdoc;

            vdoc = webBrowser1.Document;

            string html = vdoc.Body.InnerText.ToString();


            HtmlElementCollection inputs = webBrowser1.Document.GetElementsByTagName("input");
            HtmlElementCollection buttons = webBrowser1.Document.GetElementsByTagName("button");

                for (int i = 0; i < vdoc.Links.Count - 1; i++)
                {
                    string href = vdoc.Links[i].OuterHtml.ToString();
                    if (href.IndexOf("退出") >= 0)
                    {
                        vdoc.Links[i].InvokeMember("click");
                    }

                }

                vdoc.GetElementById("username").InnerText = yahooid;
                vdoc.GetElementById("passwd").InnerText = password;

                vdoc.GetElementById("submit").InvokeMember("click");

网页载入页面,显示进度条
鼠标拖动改变表格的宽度
asp.net 操作文件夹
asp.net生成文件,如.html.txt等
asp.net之datagrid动态添加删除行
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 All Rights Reserved