simone989
simone989

Reputation: 417

C# GetAttribute does not work

I have this page HTML: http://wotlk.openwow.com/spell=1

I open this page in my application using this call:

webBrowser.Navigate()

I am interested in acquiring a variable the contents of the style attribute of the ins tag, and I used this syntax.

String tmp = webBrowser.Document.GetElementsByTagName("ins")[0].GetAttribute ("style");

After the execution of the program content of tmp is "System .__ ComObjec"

Upvotes: 1

Views: 297

Answers (1)

Anthony Abouhassan
Anthony Abouhassan

Reputation: 65

Try adding .ToString() after .GetAttribute

Upvotes: 2

Related Questions