Yann Posted March 12, 2009 Posted March 12, 2009 Hello there, I am migrating some code from classic asp to asp.net. Right now i have come across a code which i can't figure how it translate to C# as i don't even know what it does. httpresponse = Server.Create("Microsoft.XMLHTTP") if S_DIRECT_RESPONSE=1 then httpresponse.Open "GET",url_trait,false httpresponse.Send response.write (httpresponse.responseText) response.end else httpresponse.Open "GET",url_trait,true httpresponse.Send end if If anyone understand the above, it would be nice to write its equivalent in C#. Thanks in advance Quote
kulrom Posted March 19, 2009 Posted March 19, 2009 Well you can use the HttpWebResponse - HttpWebResponse Classes but as this is VBScript it cannot be directly converted to C#. Rather you can convert it to e.g. JavaScript HTH :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.