Solved

Convert this asp to aspx

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

12 Experts available now in Live!

Get 1:1 Help Now