Click here to Skip to main content
15,894,291 members
Articles / Web Development / ASP.NET

ASP.NET MVC Chart Control

Rate me:
Please Sign up or sign in to vote.
4.86/5 (59 votes)
15 Nov 2010CPOL5 min read 313.4K   17.4K   148  
Shows how chart controls are used in ASP.NET MVC
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ChartApplication.Models.ResultModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Add/Edit Result
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">

    <script src="../../Scripts/ui.tabs.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function() {
            $("#tabs").tabs();
        });
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.BeginForm(); %>
    <% var results = ViewData["results"] as IList<ChartApplication.Models.ResultModel>; %>
    <div class="featurebox" style="overflow:hidden;">
        <h2>
            Add/Edit Result</h2>
        <div style="width:60%; margin:0 3% 0 3%; float:left">
            <%Html.RenderPartial("ChartUserControl"); %>
        </div>    
        <div style="width:20%; margin:0 3% 0 3%; float:left">
            <%Html.RenderPartial("ResultUserControl", results); %>
        </div>
    </div>
    <% Html.EndForm(); %>
</asp:Content>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Simplexhub
Bangladesh Bangladesh
** I have been working in the information technology field, specializing in web development(mostly .NET), internet marketing, usability, and high profile website design.

Comments and Discussions