Creating a PopChart-Enabled Web Application

Note: The first 4 steps are directions for creating a web application. If you already know how to create a web application, do so and skip to Step 4.

1. Create a new project by selecting File > New > Project.

2. Select Visual C# (or Visual Basic, if you'd prefer to use that language) from the Project Types list.

3. Under the Templates list, select the icon for the ASP.NET Web Application template.


If you do not see this icon, make sure that you have Visual C# (or Visual Basic) selected under Project Types.

4. Assign your web application to an appropriate location by entering it into the Location box.


For this example, we will use http://localhost/MyPopChart.

5. If your toolbox is not already open, open it by clicking on the Toolbox icon or selecting View > Toolbox.

6. From the General tab in your toolbox (or another tab if you have moved it) drag the PopChart web server control onto your web form.


7. Connect your PopChart to your data.

To learn how to connect your PopChart to data, refer to "Connecting to a Database" on page B-20.

8. Customize your PopChart image accordingly.

To learn about how you can customize your PopChart image, refer to "Customizing Your PopChart" on page B-11.

9. Save your web application by selecting File > Save All.

10. Compile your web application by selecting Build > Build MyPopChart (where MyPopChart is the name of your web application).


The web application should compile without error.

11. You can preview your web application, with the PopChart in it, by viewing the WebForm1.aspx file in the location you specified in step 3.

This assumes that you placed your PopChart into the WebForm1.aspx web form, which is the default form that Visual Studio.NET creates for you. If you inserted your PopChart into a different web form, you should use the name of that web form instead.

In this example, the location is http://localhost/MyPopChart/WebForm1.aspx.