Link to home
Start Free TrialLog in
Avatar of Mantemper
Mantemper

asked on

Convert this asp to aspx

Just converting to the asp script below to make it works with .aspx.

if possible please convert them to ASP.Net and the Visual C#

Thank you very much
'default.asp, should be default.aspx after the conversion
<% 
ToUrl= "https://www.example.com"
Keyword= "DEMO" 
SubscriptionKey= "faf32341afafsa" 
MyUrl = ToUrl & "?Keyword=" & Keyword& "&SubscriptionKey=" & SubscriptionKey
 
 
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") 
xmlhttp.open "POST", MyUrl , false 
xmlhttp.send "" 
msg = xmlhttp.responseText 
response.write(MyUrl )
 
response.write(msg)
set xmlhttp = nothing 
 
 
%>

Open in new window

Avatar of Alpesh Patel
Alpesh Patel
Flag of United States of America image

http://weblogs.asp.net/pleloup/archive/2004/01/22/61754.aspx

this is the solution how u can use your script with MSXML2.ServerXMLHTTP

thanx
Avatar of Mantemper
Mantemper

ASKER

I don't think .net use the MSXML2.
I am not so sure
they are using some kind of
WebRequest Class
 http://msdn2.microsoft.com/en-us/library/system.net.webrequest(VS.71).aspx
ASKER CERTIFIED SOLUTION
Avatar of Alpesh Patel
Alpesh Patel
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I got it.

Thank you guys