Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 7-Apr-12 3:25am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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?
  Permalink  
Comments
SinaNadi at 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
Mark Nischalke at 7-Apr-12 18:36pm
   
Create a web service.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 390
1 Jochen Arndt 150
2 Richard MacCutchan 135
3 DamithSL 95
4 Garth J Lancaster 90
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,260


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 8 Apr 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100