Solved

Convert this asp to aspx

Posted on 2007-12-05
4
2,156 Views
Last Modified: 2013-12-16
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

0
Comment
Question by:Mantemper
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:Alpesh Patel
ID: 20412469
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
0
 

Author Comment

by:Mantemper
ID: 20416674
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
0
 
LVL 10

Accepted Solution

by:
Alpesh Patel earned 300 total points
ID: 20420627
ya if u want to use incode ASP.net page then u have to use HttpWebRequest which is equivalent class

http://msdn.microsoft.com/msdnmag/is...b/default.aspx

this is the link which can help u
0
 

Author Comment

by:Mantemper
ID: 20812192
I got it.

Thank you guys
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question