C# .NET - vb to c# code - Asked By Ali Khan on 29-Jun-12 04:54 AM

VB6 to c#
what is the equivalent of Inet1.Execute in c#
Chintan Vaghela replied to Ali Khan on 29-Jun-12 06:02 AM

Hi Frndz,


Functionality:  Equivalent Internet Transfer Protocol Control in C#



To achieve this task,


Instead of using Internet Transfer Protocol look the class which derived from WebRequest and WebResoponse


HTTP Access :: Use HttpWebRequest and HttpWebResponse Class


FTP Access:: User FtpWebRequest and FtpWebResponse Class




Hope this helpful!





RAJASEKHAR RAJENDRAN replied to Ali Khan on 29-Jun-12 06:17 AM

The Equivalent C# Code for  Inet1.Execute is 

The below Code shows the sample of it.

If in vb you using as  Inet1.Execute("http://www.eggheadcafe.com ","POST","-")

The Equivalent code in C# would be as below.

req = WebRequest.Create("http://www.eggheadcafe.com");
req.Method = "POST";
//.. Hope the above solves.. Thanks & Regards, Rajasekhar.R

Ali Khan replied to RAJASEKHAR RAJENDRAN on 29-Jun-12 07:15 AM