通过ID webBrowser1获取href链接c#
如果一个人有id而且我得到了文字,我就用这个
var text = webBrowser1.Document.GetElementById("id").InnerText;
我怎样才能获得知道id的链接href
HTML
ubuntu-12.04-desktop-i386.iso
string href = webBrowser1.Document.GetElementById("id").GetAttribute("href");
试试这个
webBrowser1.Document.GetElementById("link11").GetAttribute("href")