Solved

Convert this asp to aspx

Posted on 2007-12-05
4
2,152 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now