| Implementation Methods > Using it with ASP.NET |
| In the previous example, we had seen how to use FusionCharts
with ASP. Here, we will learn how to use it with Microsoft's newest web
technology - ASP.NET. Analogically, using FusionCharts with ASP.NET is very similar to using with ASP.NET, but for the changes in data connection and retrieval modules. As an example, we will consider the case of a company which wants to plot a pie chart showing the various shareholders of the company. The name of the shareholders and the number of shares owned by each of them is stored in two columns of a SQL Server table tbl_shares. So, let's get straight to action and create a page Shares.aspx which would show the graphical distribution of shares. For this example, we will opt to do everything in one page itself, i.e., we would go the dataXML way to provide data to the graph. Create a new page Shares.aspx and enter
the following code in it: |
<%@ Page Language="VB" debug="true"
%> <Script runat="server"> |
| And, when you view the above page in browser, you should get a similar output as the one below: |
![]() |
| And, so you saw how easily you can integrate FusionCharts with ASP.NET. |