Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello
I have a website And have a windows application, how can I access the files on my website and show them in windows forms(C#)
Posted

If you don't want to create a Web service and really want to work with some existing Web site, you can do it using the techniques of Web scraping. Please see:
http://en.wikipedia.org/wiki/Web_scraping[^].

Basically, you will need to use the class System.Net.HttpWebRequest, please see:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^].

For some more detail, please see my past answers:
get specific data from web page[^],
How to get the data from another site[^].

—SA
 
Share this answer
 
What files? Do you mean some common files, such as Word documents? Or the html or aspx files of the website?

For the former you could create a webservice to expose the files to both applications. For the latter, why?
 
Share this answer
 
Comments
SinaNadi 7-Apr-12 9:00am    
I have some jpg, png or .. file
there's somthing that makes folder dynamically in website
I want the list of one of the directories
[no name] 7-Apr-12 18:36pm    
Create a web service.

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