You can use WCF Service to downlad and get data from your website.
Thanks a lot for your Time and Collaboration.
Muhammad Makhaly
Senior .Net Developer
Senior .Net Developer
From: Ahmed Hussien <abu_rhma2008@yahoo.com>
To: Hany Ouf <eng.hany.ali@gmail.com>
Cc: "developers_for_ever@yahoogroups.com" <developers_for_ever@yahoogroups.com>
Sent: Wednesday, December 28, 2011 3:46 PM
Subject: Re: [Developers_For_Ever] need help
To: Hany Ouf <eng.hany.ali@gmail.com>
Cc: "developers_for_ever@yahoogroups.com" <developers_for_ever@yahoogroups.com>
Sent: Wednesday, December 28, 2011 3:46 PM
Subject: Re: [Developers_For_Ever] need help
the following code work will when client PC connect direct to internet
************************
Ping png = new System.Net.NetworkInformation.Ping();
PingReply pngRep;
PingReply pngRep;
pngRep = png.Send("www.aaa.com", 5000);
if (pngRep != null)
{
switch (pngRep.Status)
{
case IPStatus.Success:
tSearch4Updae.Enabled = true;
break;
case IPStatus.TimedOut: MessageBox.Show("Request timed out. " + "\n\n" + "الإتصال بالموقع رديء ...... برجاء اعادة المحاولة لاحقاً");
pg.Value = 0;
tProgBar.Enabled = false;
Label1.Text = "الإتصال بالموقع رديء برجاء اعادة المحاولة لاحقاً";
break;
default:
MessageBox.Show("لايوجد اتصال بالإنترنت");
Label1.Text = "لايوجد اتصال بالإنترنت";
break;
}
if (pngRep != null)
{
switch (pngRep.Status)
{
case IPStatus.Success:
tSearch4Updae.Enabled = true;
break;
case IPStatus.TimedOut: MessageBox.Show("Request timed out. " + "\n\n" + "الإتصال بالموقع رديء ...... برجاء اعادة المحاولة لاحقاً");
pg.Value = 0;
tProgBar.Enabled = false;
Label1.Text = "الإتصال بالموقع رديء برجاء اعادة المحاولة لاحقاً";
break;
default:
MessageBox.Show("لايوجد اتصال بالإنترنت");
Label1.Text = "لايوجد اتصال بالإنترنت";
break;
}
But when client PC connect through proxy server
I got default message from switch case
MessageBox.Show("لايوجد اتصال بالإنترنت");
------------------------------------------------------------------
Wa 3alikom Al-Salam
You should send the peace of code that do the connection to the web site.
You should send the peace of code that do the connection to the web site.
On Sat, Dec 24, 2011 at 3:15 PM, Ahmed Hussien <abu_rhma2008@yahoo.com> wrote:
Dear All,
Alslamo alykom
I have C# disk top application to connect with my web site on the internet.
this application read data and download files from my web site it is work well.
but when this application work on PCs that connect to internet through proxy server it not work.
the question is: how to make my disk top program take default connection or proxy setting from internet explorer ?/
__._,_.___
Kindly visit my Blog http://amrsaafan.blogspot.com
MARKETPLACE
.
__,_._,___
0 comments:
Post a Comment