473,607 Members | 2,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need to implement a stock quote using ASP ?

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.c om/q?s=MSFT"
Set objXMLHTTP = CreateObject("M icrosoft.XMLHTT P")
objXMLHTTP.open "GET",strUrlAdd ress, false
objXMLHTTP.send
ProcessUrl = objXMLHTTP.Resp onseText
Set objXMLHTTP = Nothing

B.R

Aug 3 '07 #1
3 2372
yuvalbra wrote on 03 aug 2007 in microsoft.publi c.inetserver.as p.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.c om/q?s=MSFT"
Set objXMLHTTP = CreateObject("M icrosoft.XMLHTT P")
objXMLHTTP.open "GET",strUrlAdd ress, false
objXMLHTTP.send
ProcessUrl = objXMLHTTP.Resp onseText
Set objXMLHTTP = Nothing
Set objXMLHTTP = Server.CreateOb ject("MSXML2.Se rverXMLHTTP")

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 3 '07 #2
On 3 , 17:30, "Evertjan." <exjxw.hannivo. ..@interxnl.net wrote:
yuvalbra wrote on 03 aug 2007 in microsoft.publi c.inetserver.as p.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.c om/q?s=MSFT"
Set objXMLHTTP = CreateObject("M icrosoft.XMLHTT P")
objXMLHTTP.open "GET",strUrlAdd ress, false
objXMLHTTP.send
ProcessUrl = objXMLHTTP.Resp onseText
Set objXMLHTTP = Nothing

Set objXMLHTTP = Server.CreateOb ject("MSXML2.Se rverXMLHTTP")

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Same error message!!!

Aug 3 '07 #3
yuvalbra wrote on 03 aug 2007 in
microsoft.publi c.inetserver.as p.general:
On 3 , 17:30, "Evertjan." <exjxw.hannivo. ..@interxnl.net wrote:
>yuvalbra wrote on 03 aug 2007 in
microsoft.publ ic.inetserver.a sp.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
[Switch off friendly error messages in IE!]
>>
strURL = "http://finance.yahoo.c om/q?s=MSFT"
Set objXMLHTTP = CreateObject("M icrosoft.XMLHTT P")
objXMLHTTP.open "GET",strUrlAdd ress, false
strURL, not strUrlAddress
objXMLHTTP.send
ProcessUrl = objXMLHTTP.Resp onseText
Set objXMLHTTP = Nothing

Set objXMLHTTP = Server.CreateOb ject("MSXML2.Se rverXMLHTTP")
Same error message!!!
Try this, works fine here:

========== test.asp =========
<%
strURL = "http://finance.yahoo.c om/q?s=MSFT"
Set objXMLHTTP = Server.CreateOb ject("MSXML2.Se rverXMLHTTP")
objXMLHTTP.open "GET",strUr l, false
objXMLHTTP.send
ProcessUrl = objXMLHTTP.Resp onseText
Set objXMLHTTP = Nothing
Set objXMLHTTP = Server.CreateOb ject("MSXML2.Se rverXMLHTTP")
%>
<%=ProcessUrl %>
=============== ===============

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 3 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1901
by: semooo | last post by:
hi Im waseem I need an immediate help as soon as possible, I have three simple question with coding problems in data structure in c++ thess are : 1)suppose that you are finanicier and purchase 100 shares of stock in company X , in each of january , april , and september and sell 100 shares in each of june and november the price per share in these months were jan apr jun sep nov
0
3002
by: Limpor | last post by:
Hello, I am new to learning java, and i am trying to build the class for a calculation card game, unfortunately i can't get the public Card top() and Card takeTop() method in the Stock class. Can someone helps me. Thanks!! ----------------------------------------------------------------------- The code for the Stock class: ----------------------------------------------------------------------- public class Stock { private Deck deck = new...
0
2829
by: Limpor | last post by:
Hi, I’m working on a solitaire game as my course assignment, and I am having trouble to dealing with Stock class, which consists of an upturned top card plus deck. The code for Stock class: import java.util.*; import java.awt.*; /** * The Stock is the deck of unused cards. It is subtly different from the deck * itself in several ways. Firstly, it does not come into existence until after * the four cards have been extracted from the...
4
2749
by: georges the man | last post by:
hey guys, i ve been posting for the last week trying to understand some stuff about c and reading but unfortunaly i couldnt do this. i have to write the following code. this will be the last time i ask for an entire code or u can give me the outine of what to do and i ll do it by myself. the description is the following: the program will read a text file that contains historical price of a stock. The program will allow users to query...
3
4736
sammyboy78
by: sammyboy78 | last post by:
I'm trying to display an array of objects using a GUI. My instructions are that the CD class and it's sublcass don't need to change I just need to modify class CDInventory to include the GUI. I'm not even sure if the way I've written this is going to work but anyway, I keep getting a compilation error that says: C:\Documents and Settings\Sam\GUICDInventory.java:22: cannot find symbol symbol : constructor JList(CDInventory) location: class...
7
1334
by: Martin Marcher | last post by:
Hello, having worked quite a bit with python in the last months (some Java before, and some C++ before that) I was very impressed by an idea the Java people had. Explanation: the JSRs define how to implement certain services and or features in Java so that they can be reused. I haven't found such a thing for python yet.
2
1648
by: nirmalc | last post by:
Question 1: XYZ Company is a Car production company. It has four factories and many distribution outlets spread across the country. The company keeps online records of the sales of its cars. It also creates batched Production schedules on the basis of the sales of the car. The car production is done at a nearest factory so that the cost of transfer of cars to distribution centre is minimized. Each factory also maintains its inventory. The...
2
1470
by: NITHYA LATHA | last post by:
XYZ Company is a Car production company. It has four factories and many distribution outlets spread across the country. The company keeps online records of the sales of its cars. It also creates batched Production schedules on the basis of the sales of the car. The car production is done at a nearest factory so that the cost of transfer of cars to distribution centre is minimized. Each factory also maintains its inventory. The company...
2
5518
by: Jim Devenish | last post by:
I have a table named StockItems with field: StockItemID QuantityInStock I am creating assemblies of stock items and have another table named StockItemAssemblies with fields: StockItemAssemblyID AssemblyID StockItemID Quantity
0
8049
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8463
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8128
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6803
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5471
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3953
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2461
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1574
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.