<A class=mic_dot title=足球 onclick=\"gameOpen('http://www.xxx.com/app/member/browse/index.php?ptype=RB&amp;gtype=FT&amp;uid=Ffb80413zb514d7hz32o1i4z4jfgcz032','body');\" href=\"#\">足球</A> 
++++++++++++++++++++++++++++++++++++++++++++++++++++以上是用WebBrowser控件里DOC的 <a>标签 ,具体如何触发它?
恳请大哥们指点。

解决方案 »

  1.   

    HtmlElement usern = webBrowser1.Document.GetElementById("UserName");
                    
                    usern.InnerText = "liuhao";
                    HtmlElement dom = webBrowser1.Document.GetElementById("Domain");
                    dom.InnerText = "template";
                    HtmlElement psw = webBrowser1.Document.GetElementById("PassWord");
                    psw.InnerText = "123456";
                    HtmlElement btl = webBrowser1.Document.GetElementById("Btn_Login");
                    object haha= btl.InvokeMember("Click");
      

  2.   


    <A class=mic_dot title=足球 onclick=\"gameOpen('http://www.xxx.com/app/member/browse/index.php?ptype=RB&amp;gtype=FT&amp;uid=Ffb80413zb514d7hz32o1i4z4jfgcz032','body');\" href=\"#\">足球</A> 
    ++++++++++++++++++++++++++++++++++++++++++++++++++++
    不存在id汗一下。