English 中文(简体)
如何展示伙伴关系。 网上图表(框架4.0)
原标题:How to display ASP.NET Charts (Framework 4.0) on Visual Studio 2010?

我正在开发一个网络应用程序,现在我正试图利用伙伴关系开发一个仪表板。 NET图表。 我现在试图绘制图表,显示使用该系统的用户数量。 我的数据库有一个表格,保存使用该系统的用户名称。 我将图表从工具箱拖到我的网络应用,如下文所示。

    <asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource1">
                <series>
                    <asp:Series Name="Series1">
                    </asp:Series>
                </series>
                <chartareas>
                    <asp:ChartArea Name="ChartArea1">
                    </asp:ChartArea>
                </chartareas>
            </asp:Chart>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:testConnectionString %>" SelectCommand="SELECT COUNT(DISTINCT Username) AS NumberOfUsers FROM  dbo.UserQuiz">
</asp:SqlDataSource>

我篡改了档案,我没有发现任何错误,但浏览器没有在网站上显示任何图表,我不知道为什么。

我正在使用《2010年视觉演播室》和《网络框架》4.0。

问题回答

这个网站有某些录像,你可以浏览并了解这一想法。 很难说为什么不工作。 在数据库中是否有数据? 你有正确的联系。 您是否试图将数据网与这一数据来源连接起来。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签