views:

14

answers:

2

Hi everyone. I want to search my link on other pages by passing url address. After passing the url it should return some boolean value which will define the existence of my link.

Preferred language ASP.net/C#

If it is possible, Please help me.

+1  A: 

Get the html of you targeted url, e.g. : using php's fopen(), then parse it like a XML document, looking for any <a> element having its href attribute equal to your own website.

Should be few lines to write.

Clement Herreman
A: 

You can use HTQL COM object to parse the HTML page. Set a global variable 'link' as your url, then query it by: <a (href = link)>. If the link is found, isEOF() returns false, else it returns true.

See documentation at: http://htql.net/htql-com-manual.pdf.

seagulf