programmingsite : code , tutorials and scripts
Navigation

home


ASP
ASP.net
C
C++
C#
PHP
Java
JavaScript
Powershell
VB.net

Visual Basic


Resources
code
tutorials
training

Ads
Products

 

 

Stock Market Information




Stock Market Information

This is another example that shows the possibilities of putting content from another site on yours . Again you should ask permission to do this.

This merely displays a selection of charts for various stock exchanges such as the Nasdaq , Dow Jones and the Hang Seng. This would be a useful addition to a news site.


<%
if Request.Form("index") = "" Then
%>

<form action = <%=Request.ServerVariables("SCRIPT_NAME") %> method = post>
<select name="index">
<option>Nasdaq</option>
<option>Dow Jones</option>
<option>S & P 500</option>
<option>Hang seng</option>
</select>
<input type = submit value = "submit">
</form>
<%
else

strIndex = Request.Form("index")
Select Case (strIndex)
Case "Nasdaq":
url = "http://chart.yahoo.com/c/1y/_/_ixic.gif"
Case "Dow Jones":
url = "http://chart.yahoo.com/c/1y/_/_dji.gif"
Case "S & P 500":
url = "http://chart.yahoo.com/c/1y/_/_spc.gif"
Case "Hang seng":
url = "http://chart.yahoo.com/c/1y/_/_hsi.gif"
End Select


Response.Write "<b>" & strIndex & "</b><br>"
Response.Write "<img src = " & url
End If
%>







Products
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals
Asp Studio 2005
Xtra PHP
Online PHP Script Encoder
Comparison

Links
Make money selling software
Uk shopping
UK price comparison
US price comparison
free articles
free stuff
Gambling resources
Software directory
XBox cheats and more
Sexy free wallpapers
Hosting resources
Nintendo Wii info
Beginners PHP
Health and fitness
Domain names
Dating site
Nintendo DS resources
Dropshippers
Maxi directory
Perfume and fragrances
PC shopping, tips and info
Magazine superstore

Ads