Corda.com
Microsoft ASP.NET (PopChart)
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.
Quick Start
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.
- Download and Install Corda Server.
- Start Corda Builder.
- Open the
examples/apfiles/bar.pcxmlfile.This example appearance file is installed with PopChart. To open it, select File > Open, then choose
../examples/apfiles/bar.pcxml. - Generate Sample ASP.NET HTML code for this appearance file.
- Save the HTML code as
popchart.aspxto your web sever. - Generate Sample ASP.NET Source code for this appearance file.
- Save the source code as
popchart.aspx.csto your web sever. - Create a
binfolder in the same folder where you saved the HTML and source code files. - Copy the ASP.NET version of the Corda Embedder to the
binfolder. - Compile the
popchart.aspx.csfile into a library. - Start Corda Server.
- Browse to the
popchart.aspxfile in your web browser. - You should see a bar graph in your browser.
Click here to download.
Select Start Menu > Corda 6.0 > Corda Builder (Click Cancel when the Wizard opens).
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.
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.
Select Source Code (.aspx.cs) in the top right corner Select Code File box.
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.
For example, C:\Inetpub\wwwroot\bin.
This file can be found in Corda60/dev_tools/embedder/dotnet/ CordaNetEmbedder.dll.
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
Select Start Menu > Corda 6.0 > Corda Server.
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.
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:
