3
Answers

how to get connection string of windows application through web server.

Photo of yogita dhingra

yogita dhingra

15y
4.4k
1
i am developing one web application in C# that will fetch data from client windows server application(Desktop Application). so for that i want to provide interface to client for connection string. but can any one tell me how to get connected with client windows server Application.

Answers (3)

0
Photo of Sam Hobbs
NA 28.7k 1.3m 14y


If I understand you, then I have written code that does that. I don't understand, however, what you mean by "inserted into each project".
 
I am not sure what a "thumbnail link" is. I assume it is a link in HTML that is a thumbnail of a larger image and the target of the link is the larger image. So you need code that finds the thumbnail link in the HTML and then downloads the image that is the specified target. Does that sound correcgt?
 
For projects such as this that you are willing to pay for, there is a separate forum for that purpose. Yop can use that forum for future requests.
 
To find a link in HTML, you can use code such as in my Introduction to Web Site Scraping article. It might be possible to use something simpler but I prefer to ensure a reasonable level of reliability and reliability might require more sophisticated processing than the simplest solution might be.
 
Then to download the file, just use something such as:
System.Net.WebClient wc = new System.Net.WebClient();
try
{
wc.DownloadFile(ImageURL, Path);
}
catch (Exception ex)
{
// error message
}

 
You can contact me by sending a private message from my profile page at:
http://www.c-sharpcorner.com/Authors/AuthorDetails.aspx?AuthorID=SamTomato