C# Programming
09-16-2009, 01:50 AM
Hi for all
im now tring to redirect my project to PHP page from C# APP
and i used these lines (code):
// prepare the web page we will be asking for
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create("http://localhost/d.php");
// execute the request
HttpWebResponse response = (HttpWebResponse)
request.GetResponse();
that executed my program without showing me a PHP page in my browser
and i used these lines also as my code
string targetURL = @"http://localhost/MyPage.php";
System.Diagnostics.Process.Start(targetURL);
and that run true but i prefer the first method to do that
So any help
Thanks in advance
im now tring to redirect my project to PHP page from C# APP
and i used these lines (code):
// prepare the web page we will be asking for
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create("http://localhost/d.php");
// execute the request
HttpWebResponse response = (HttpWebResponse)
request.GetResponse();
that executed my program without showing me a PHP page in my browser
and i used these lines also as my code
string targetURL = @"http://localhost/MyPage.php";
System.Diagnostics.Process.Start(targetURL);
and that run true but i prefer the first method to do that
So any help
Thanks in advance