home *** CD-ROM | disk | FTP | other *** search
ASP.NET Web Form | 2000-06-23 | 1.5 KB | 67 lines |
- <%@ Page Language="C#" %>
- <%@ Assembly Name="StockNet" %>
- <%@ Assembly Name="System" %>
- <%@ Import Namespace="System.Text" %>
- <%@ Import Namespace="System.Collections" %>
- <%@ Import Namespace="System.Runtime.Remoting" %>
- <%@ Import Namespace="StockNet" %>
-
- <html>
- <head>
-
- <script runat="server">
- String symbol;
- String lastTradePrice;
-
- void quotes_change(Object Source, EventArgs E)
- {
- StockNet.StockQuote stockQuote = new StockNet.StockQuote();
- symbol = Symbol.Value;
- lastTradePrice = stockQuote.GetLastTradePrice(symbol);
- }
-
- </script>
-
- </head>
-
-
-
- <body style="font: 10pt verdana">
-
- <h3>SimpleQuote - GetLastTradePrice </h3>
-
- <form runat="server">
- <font face="Verdana">
-
- <b>Please Enter a Stock symbol: </b>
-
- <INPUT id="Symbol" VALUE="" TYPE="TEXT" runat="server" OnServerChange = "quotes_change">
-
- <p>
-
- </font>
-
- </form>
-
-
-
-
- <table cellpadding="1" cellspacing="1" width="100%" style="COLOR:
- black;FONT: 8pt verdana, arial" border="0" >
-
- <tr bgcolor="ffffff">
- <td style="padding-left:5" width="*" bgcolor="#b6cbeb"><b>Symbol</b></td>
-
- <td style="padding-left:5;padding-right:15" width="*" bgcolor="#b6cbeb"><b>LastTradePrice</b></td>
-
- </tr>
- <tr bgcolor="#eeeeee">
- <td style="padding-left:5" width="*" bgcolor="#b6cbeb"><b><%=symbol%></b></td>
-
- <td style="padding-left:5;padding-right:15" width="*" bgcolor="#b6cbeb"><b><%=lastTradePrice%></b></td>
- </tr>
- </table>
-
- </body>
- </html>
-