<%@ Page language="c#" Codebehind="HttpStockQuote.aspx.cs" AutoEventWireup="false" Inherits="HttpStockQuote.WebForm1"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0"> <meta name="CODE_LANGUAGE" Content="C#"> <meta name="vs_defaultClientScript" content="JavaScript (ECMAScript)"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <body> <font face="arial" size="2">This sample demonstrates the use of the WebASP Control in the ASP.NET environment. Enter a stock symbol and click "Get Quote". The WebASP Control will grab the page and use the WebPage object to parse the stock value.</font> <form id="Form1" method="post" runat="server"> <asp:Label id="Label1" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="X-Small">Symbol:</asp:Label> &nbsp;&nbsp; <asp:TextBox id="txtSymbol" runat="server"></asp:TextBox> &nbsp;&nbsp; <asp:Button id="cmdGetQuote" runat="server" Text="Get Quote"></asp:Button> <br> <br> <asp:TextBox id="txtResult" runat="server" Width="326px" Height="67px" TextMode="MultiLine"></asp:TextBox> </form> <font face="arial" size="2">View <A href="httpstockquoteaspx.inc">ASPX Page Source</A>. <br> View <A href="httpstockquotecs.inc">Codebehind (.cs) Source</A>. <br> <br> <h5> To Use This Project On Your ASP .NET Machine Using Visual Studio 7. </h5> <ul> <li> Be sure to have a registered copy of DartWeb.Dll (COM Dll) on the server. <li> Create a wrapper for the COM Dll by using the tlbimp app. The command should be something like: <br> <code>"C:\Program Files\Microsoft.NET\FrameworkSDK\Bin\TlbImp.exe" DartWebAsp.dll /out:DartWebAspDotnet.dll </code> <li> Start a New Project in Visual Studio 7 named "HttpStockQuote". Choose C# ASP.NET Web Application. <li> Copy the wrapper dll to the new Project in the HttpStockQuote/Bin directory. <li> In the Solution Explorer, right click References and choose Add Reference. Select the .NET tab and browse to find your wrapper dll. Add it as a reference. <li> Rename WebForm1.aspx to HttpStockQuote.aspx. <li> Open HttpStockQuote.aspx in the editor and click the HTML tag to switch to HTML view. <li> Click the "View ASPX Source" link above. Copy the text from the resulting page and paste this text entirely over the text on HttpStockQuote.aspx in the editor. <li> Remove the "xmp" html tags from the beginning and end of HttpStockQuote.aspx. These were used so the HTML wouldn't be parsed by the browser. <li> Click the Design Tab to switch to design view. Double click the button to open the .cs class for editing. Click the "View Codebehind (.cs) Source" link above. Copy the text from the resulting page and paste this text entirely over the text on HttpStockQuote.aspx.cs in the editor. <li> Click Debug, Start Without Debugging to start the project. </li> </ul> </font> </body> </HTML>