need to implement a stock quote using ASP ?

Y

yuvalbra

Does anyone know how to implement a stock quote using ASP on a
website?
Any sample code or components, etc., would be appreciated.


I try this but got error 500 on page

strURL = "http://finance.yahoo.com/q?s=MSFT"
Set objXMLHTTP = CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.open "GET",strUrlAddress, false
objXMLHTTP.send
ProcessUrl = objXMLHTTP.ResponseText
Set objXMLHTTP = Nothing

B.R
 
E

Evertjan.

yuvalbra wrote on 03 aug 2007 in microsoft.public.inetserver.asp.general:
Does anyone know how to implement a stock quote using ASP on a
website?
Any sample code or components, etc., would be appreciated.


I try this but got error 500 on page

strURL = "http://finance.yahoo.com/q?s=MSFT"
Set objXMLHTTP = CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.open "GET",strUrlAddress, false
objXMLHTTP.send
ProcessUrl = objXMLHTTP.ResponseText
Set objXMLHTTP = Nothing

Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
 
Y

yuvalbra

yuvalbra wrote on 03 aug 2007 in microsoft.public.inetserver.asp.general:




Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")



Same error message!!!
 
E

Evertjan.

yuvalbra wrote on 03 aug 2007 in
microsoft.public.inetserver.asp.general:

[Switch off friendly error messages in IE!]

strURL, not strUrlAddress
Same error message!!!

Try this, works fine here:

========== test.asp =========
<%
strURL = "http://finance.yahoo.com/q?s=MSFT"
Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
objXMLHTTP.open "GET",strUrl, false
objXMLHTTP.send
ProcessUrl = objXMLHTTP.ResponseText
Set objXMLHTTP = Nothing
Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
%>
<%=ProcessUrl%>
==============================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top