Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...