Click here to Skip to main content
15,300,160 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
Plz sir kindly help me how can i get all file names of a website. Actually i am trying to fetch the contact page of any website using windows application. When i will put a url in a textBox and click on a button it will show the contact page of that website.
Pheonyx 3-Apr-14 9:35am
I imagine you need something that looks for the Site file (that the webcrawlers read), then you need to be able to identify which is the contact page, not all sites will have one called "Contact Us", it could be "About us" it could be "Contact", it could be a million things. They might not even have a contact us page, instead they might have a link that loads a partial div via an ajax call. Who knows, realistically I think your requirement is unclear/too broad.

1 solution

You can't do it directly. The best you can do is use a web crawler like google and other search engines do by examining all the hyperlinks on a page and then following them until you find something that looks like a contact us page.

This sounds like a terrible idea unless you're doing it just for fun.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900