Corda.com

 

Microsoft ASP.NET (PopChart)

< BACK TO QUICK START INDEX

If you are using Visual Studio.NET, you may want to consider looking at the Visual Studio.NET tutorial first.

These instructions will help you deploy a simple bar graph in an ASP.NET application on your Microsoft IIS server. These instructions are somewhat abbreviated. If you would like a more detailed tutorial, view the PopChart Getting Started manual.

These instructions assume you are installing Corda Server on a machine running Microsoft Internet Information Services (IIS) with ASP.Net. If you are running IIS on a different machine, these instructions may not work, or you may have to make adjustments. If you do not have ASP.NET installed, try the ASP example instead.

  1. Download and Install Corda Server.
  2. Click here to download.

  3. Start Corda Builder.
  4. Select Start Menu > Corda 6.0 > Corda Builder (Click Cancel when the Wizard opens).

  5. Open the examples/apfiles/bar.pcxml file.

    This example appearance file is installed with PopChart. To open it, select File > Open, then choose ../examples/apfiles/bar.pcxml.

  6. Generate Sample ASP.NET HTML code for this appearance file.
  7. Select the Sample Code tab from the bottom left corner. Then select ASP.NET (C# Embedder) from the Code for pull-down menu. Then select HTML Code (.aspx) in the top right corner Select Code File box.

  8. Save the HTML code as popchart.aspx to your web sever.
  9. To save, click on Save Code to File button. Usually, you can save this file to your web server by saving it to C:\inetpub\wwwroot.

  10. Generate Sample ASP.NET Source code for this appearance file.
  11. Select Source Code (.aspx.cs) in the top right corner Select Code File box.

  12. Save the source code as popchart.aspx.cs to your web sever.
  13. To save, click on Save Code to File button. Usually, you can save this file to your web server by saving it to C:\inetpub\wwwroot.

  14. Create a bin folder in the same folder where you saved the HTML and source code files.
  15. For example, C:\Inetpub\wwwroot\bin.

  16. Copy the ASP.NET version of the Corda Embedder to the bin folder.
  17. This file can be found in Corda60/dev_tools/embedder/dotnet/ CordaNetEmbedder.dll.

  18. Compile the popchart.aspx.cs file into a library.
  19. Be sure to include the CordaNetEmbedder.dll file as a resource. Also, be sure to output the library to the bin folder you created. For example:

    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc /out:C:\Inetpub\wwwroot\bin\popchart.dll
    /r:C:\Inetpub\wwwroot\bin\CordaNetEmbedder.dll
    /t:library popchart.aspx.cs
  20. Start Corda Server.
  21. Select Start Menu > Corda 6.0 > Corda Server.

  22. Browse to the popchart.aspx file in your web browser.
  23. If you saved the file to the root of your web server, you can browse to it by entering http://localhost/popchart.aspx in a browser.

  24. You should see a bar graph in your browser.

Now you can customize your graph and connect to data on the fly by editing the popchart.aspx file and recompiling. On our website you'll find a number of example ASP.NET applications, including code for connecting to a database: