Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: ASP.NET Charting Controls

  1. #1
    bradg is offline Junior Member
    Join Date
    May 2012
    Posts
    13

    Default ASP.NET Charting Controls

    I'm wanting to add ASP.NET Charting Controls to our website. Has anyone accomplished this that could point me in the right direction?

    Right now the main problem seems to be adding the appropriate files to the .NET 3.5 framework and/or upgrading the framework to 4.0.

    Thoughts or suggestions welcome.

  2. #2
    bradg is offline Junior Member
    Join Date
    May 2012
    Posts
    13

    Default

    Here's what I did to add ASP.NET Charting Controls to my store. I should mention I'm running AspDotNetStorefront Multistore 9.3.0.0/9.3.0.0.

    1. Back up your web.config file and save it somewhere safe.

    2. Create a folder called temp (or something else) in the root of your project. Make sure it has write access.

    3. Add these lines to the following sections of your web.config file:

    Code:
    <appSettings>
    <add key="ChartImageHandler" value="storage=file;timeout=20;dir=C:\inetpub\wwwroot\AspDotNetStoreFront\Web\temp;" />
    </appSettings>
    Code:
    <httpHandlers>
    add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
    </httpHandlers>
    Code:
    <handlers>
    <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </handlers>
    4. Add this line to the top of any .aspx that uses the charting control:

    Code:
    <%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
    It seems to be working for me.
    Last edited by bradg; 07-18-2012 at 11:16 AM.