I am trying to get a very simple chart to show on my page, but since charting is so new to me, I don't know how to accomplish the simple stuff.
Here is my Stored Procedure
And here is my page load
My problem is that I don't know how to wire it up to my Chart... Basically the chart needs to be a PIE CHART with TOTAL BUSINESSES FOR SALE and TOTAL BUSINESSES WANTED
Note I do not want to use a DataSource in my ASPX.. I think they are just UGLY.
Thanks in advance.
Here is my Stored Procedure
-- ============================================= |
-- Author: Chase |
-- Create date: 11/10/2008 |
-- Update date: 11/10/2008 |
-- Description: Get Admin Data |
-- ============================================= |
ALTER PROCEDURE dbo.bt_BizBoth_AdminAdChart |
AS |
SET NOCOUNT ON |
SET ANSI_NULLS ON |
/* SET NOCOUNT ON */ |
Select |
(Select Count([ID]) |
As TotalBizForSale |
From bt_BizForSale |
) AS TotalForSale, |
(Select Count([ID]) |
As TotalBizWanted |
From bt_BizWanted |
) As TotalWanted |
And here is my page load
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
Dim BizBothDC As New DAL.BizBothDataContext |
Dim results = BizBothDC.bt_BizBoth_AdminAdChart |
RadChart1.DataBind() |
End Sub |
My problem is that I don't know how to wire it up to my Chart... Basically the chart needs to be a PIE CHART with TOTAL BUSINESSES FOR SALE and TOTAL BUSINESSES WANTED
Note I do not want to use a DataSource in my ASPX.. I think they are just UGLY.
Thanks in advance.