Classic ASP to ASP.Net

Yann

Newcomer
Joined
Nov 10, 2003
Messages
3
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.

Code:
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
 
Back
Top