From: SeePee on 16 Jun 2010 05:36 I am using Microsoft Visual Studio 2008 and need to know the most popular method of creating charts and graphs. Also if you could supply an example. Many thanks
From: Mark Rae [MVP] on 16 Jun 2010 07:09 "SeePee" <SeePee(a)nospam.nospam> wrote in message news:C90B3872-AB01-4379-A10D-D767CA6C757F(a)microsoft.com... > I am using Microsoft Visual Studio 2008 and need to know the most popular > method of creating charts and graphs. Also if you could supply an example. http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=asp:Chart -- Mark Rae ASP.NET MVP http://www.markrae.net
From: SeePee on 16 Jun 2010 09:15 Mark, I have downloaded and installed Microsoft Chart Controls Add-on for Microsoft Visual Studio 2008 - http://www.microsoft.com/downloads/details.aspx?FamilyId=1D69CE13-E1E5-4315-825C-F14D33A303E9&displaylang=en I then created a new project in MS Visual Studio 2008 and added the Chart control to a form however it does not show any chart or data when I run it in debug. This is the code in my default.aspx <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="Report_Test._Default" %> <%@ Register assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> Chart Example 1</div> <asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSourceReport1"> <series> <asp:Series Name="Series1"> </asp:Series> </series> <chartareas> <asp:ChartArea Name="ChartArea1"> </asp:ChartArea> </chartareas> </asp:Chart> <asp:SqlDataSource ID="SqlDataSourceReport1" runat="server" ConnectionString="<%$ ConnectionStrings:PADSConnectionString %>" SelectCommand="SELECT [Currency], [FXRate] FROM [tlkpCurrency]"> </asp:SqlDataSource> </form> </body> </html> I want to show the currency and its FXRate ----------------------------------------------------------------------------------------------- "Mark Rae [MVP]" wrote: > "SeePee" <SeePee(a)nospam.nospam> wrote in message > news:C90B3872-AB01-4379-A10D-D767CA6C757F(a)microsoft.com... > > > I am using Microsoft Visual Studio 2008 and need to know the most popular > > method of creating charts and graphs. Also if you could supply an example. > > http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=asp:Chart > > > -- > Mark Rae > ASP.NET MVP > http://www.markrae.net >
From: SeePee on 17 Jun 2010 06:36 Mark, I have now sorted this problem and can now run the chart locally, however is does not work on our host's server. Do they need to install anything on there server for it to work? Many Thanks "SeePee" wrote: > Mark, > > I have downloaded and installed Microsoft Chart Controls Add-on for > Microsoft Visual Studio 2008 - > http://www.microsoft.com/downloads/details.aspx?FamilyId=1D69CE13-E1E5-4315-825C-F14D33A303E9&displaylang=en > > I then created a new project in MS Visual Studio 2008 and added the Chart > control to a form however it does not show any chart or data when I run it in > debug. > > This is the code in my default.aspx > <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" > Inherits="Report_Test._Default" %> > > <%@ Register assembly="System.Web.DataVisualization, Version=3.5.0.0, > Culture=neutral, PublicKeyToken=31bf3856ad364e35" > namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml" > > <head runat="server"> > <title>Untitled Page</title> > </head> > <body> > <form id="form1" runat="server"> > <div> > > Chart Example 1</div> > <asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSourceReport1"> > <series> > <asp:Series Name="Series1"> > </asp:Series> > </series> > <chartareas> > <asp:ChartArea Name="ChartArea1"> > </asp:ChartArea> > </chartareas> > </asp:Chart> > <asp:SqlDataSource ID="SqlDataSourceReport1" runat="server" > ConnectionString="<%$ ConnectionStrings:PADSConnectionString %>" > SelectCommand="SELECT [Currency], [FXRate] FROM [tlkpCurrency]"> > </asp:SqlDataSource> > </form> > </body> > </html> > > I want to show the currency and its FXRate > ----------------------------------------------------------------------------------------------- > "Mark Rae [MVP]" wrote: > > > "SeePee" <SeePee(a)nospam.nospam> wrote in message > > news:C90B3872-AB01-4379-A10D-D767CA6C757F(a)microsoft.com... > > > > > I am using Microsoft Visual Studio 2008 and need to know the most popular > > > method of creating charts and graphs. Also if you could supply an example. > > > > http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=asp:Chart > > > > > > -- > > Mark Rae > > ASP.NET MVP > > http://www.markrae.net > >
From: Mark Rae [MVP] on 17 Jun 2010 11:23 "SeePee" <SeePee(a)nospam.nospam> wrote in message news:0D879A65-3928-4F51-9B2C-3C87C37C8DE7(a)microsoft.com... > I have now sorted this problem and can now run the chart locally, however > is > does not work on our host's server. > > Do they need to install anything on there server for it to work? http://www.4guysfromrolla.com/articles/072209-1.aspx -- Mark Rae ASP.NET MVP http://www.markrae.net
|
Next
|
Last
Pages: 1 2 Prev: How to programmatically retrieve all rows and cells in Gridview Next: simple q |