c# code:`
var node = new htmlweb(); var doc = node.load("http://ask.fm/"); htmlnode ournode = doc.documentnode.selectsinglenode("//div[@id='heads']") textbox1.text=ournode.innerhtml;
` html code :
//< div id="heads" > <a href="/sudenur3434" data-rlt-aid="welcome_head"><img alt="" class="head" id="face_30132803" src="http://img3.ask.fm/assets2/103/548/655/872/thumb_tiny/img_20150513_192250.jpg" /></a> <a href="/leylaulucay" data-rlt-aid="welcome_head"><img alt="" class="head" id="face_56578735" src="http://img1.ask.fm/assets2/091/364/883/712/thumb_tiny/11094711_919135961470973_149663457_njpg720960png1280963.png" /></a>
i want see following in text box
/sudenur3434
/leylaulucay
i have added additional line code:
var node = new htmlweb(); var doc = node.load("http://ask.fm/"); htmlnode ournode = doc.documentnode.selectsinglenode("//div[@id='heads']") var val = ournode.attributes["href"].value; textbox1.text=val;
this let href attribute. use same code other nodes href value , add them textbox
Comments
Post a Comment