资源简介
mschart 经典实例
![](http://www.nz998.com/pic/47527.jpg)
代码片段和文件信息
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.xml;
namespace System.Web.UI.DataVisualization.Charting.Samples
{
///
/// Summary description for Content.
///
public partial class Content : System.Web.UI.Page
{
//ANSEController - contains the xml information about the samples and TOC
ANSEController controller;
///
/// Roots the request to the appriopriate rendering function based off of the given
/// query string (Content=??? Topic=??? or Overview=???)
///
///
///
private void Page_Load(object sender System.EventArgs e)
{
Response.BufferOutput = false;
//load in the session instance of the ANSEController if one does not
//exist then redirect to the index page
if(this.Session[“ANSEController“] == null )
{
controller = new ANSEController();
controller.Init(this.Server.MapPath(“.“));
this.Session[“ANSEController“] = controller;
if(this.Session[“ANSEController“] == null )
{
Response.Write(“Failed to read ASP.NET session variable.“);
}
}
controller = (ANSEController)Session[“ANSEController“];
// if a sample was specified in the query string then create a frame with
// the sample in the top and the ‘InfoPages‘ in the bottom
if(Request.QueryString[“Sample“] != null)
{
ShowSample( Request.QueryString[“Sample“] );
}
// if a Topic was specified in the query string then create a page that
// shows the thumbnails and description of each child sample within that topic
else if(Request.QueryString[“Topic“] != null)
{
ShowTopic( Request.QueryString[“Topic“] );
}
//if a Content page was specified then show that page
else if(Request.QueryString[“Content“] != null)
{
ShowContent(Request.QueryString[“Content“] );
}
//show content using sequence ID
else if(Request.QueryString[“SampleSequenceID“] != null)
{
string newSequenceId = string.Empty;
string id = controller.GetSampleIDFromSequenceID(Request.QueryString[“SampleSequenceID“] ref newSequenceId);
ShowSample( id newSequenceId );
}
//if nothing was specified to be shown then show a default screen
else
{
ShowDefault();
}
}
///
/// This function is called when there is a ‘Sample=xxx‘ in the query string
/// where xxx is the url to the sample.
/// The funtion will then retrieve the sample‘s configuration xml data from
/// the ANSEController instance by its ID. Next it will create a frameset and
/// sample pages based off of the configuration data
///
/// ID of the sample as sp
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2832 2009-06-05 09:45 ChartWebSamples\51aspx源码必读.txt
文件 407 2009-04-23 10:19 ChartWebSamples\ansest
文件 7051 2009-04-23 10:19 ChartWebSamples\Appearance\3D Perspectives\3dperspectives.aspx
文件 2061 2009-04-23 10:19 ChartWebSamples\Appearance\3D Perspectives\3DPerspectives.aspx.cs
文件 491 2009-04-23 10:19 ChartWebSamples\Appearance\3D Perspectives\cscode.txt
文件 546 2009-04-23 10:19 ChartWebSamples\Appearance\3D Perspectives\sampleConfig.xm
文件 536 2009-04-23 10:19 ChartWebSamples\Appearance\3D Perspectives\vbcode.txt
文件 5806 2009-04-23 10:19 ChartWebSamples\Appearance\AntiAliasingSample\antialiasingsample.aspx
文件 1999 2009-04-23 10:19 ChartWebSamples\Appearance\AntiAliasingSample\AntiAliasingSample.aspx.cs
文件 264 2009-04-23 10:19 ChartWebSamples\Appearance\AntiAliasingSample\cscode.txt
文件 609 2009-04-23 10:19 ChartWebSamples\Appearance\AntiAliasingSample\sampleConfig.xm
文件 322 2009-04-23 10:19 ChartWebSamples\Appearance\AntiAliasingSample\vbcode.txt
文件 8186 2009-04-23 10:19 ChartWebSamples\Appearance\Appearance\chartappearance.aspx
文件 4573 2009-04-23 10:19 ChartWebSamples\Appearance\Appearance\ChartAppearance.aspx.cs
文件 989 2009-04-23 10:19 ChartWebSamples\Appearance\Appearance\cscode.txt
文件 732 2009-04-23 10:19 ChartWebSamples\Appearance\Appearance\Flag.gif
文件 547 2009-04-23 10:19 ChartWebSamples\Appearance\Appearance\sampleConfig.xm
文件 1039 2009-04-23 10:19 ChartWebSamples\Appearance\Appearance\vbcode.txt
文件 6933 2009-04-23 10:19 ChartWebSamples\Appearance\Borders\borders.aspx
文件 4859 2009-04-23 10:19 ChartWebSamples\Appearance\Borders\Borders.aspx.cs
文件 819 2009-04-23 10:19 ChartWebSamples\Appearance\Borders\cscode.txt
文件 514 2009-04-23 10:19 ChartWebSamples\Appearance\Borders\sampleConfig.xm
文件 877 2009-04-23 10:19 ChartWebSamples\Appearance\Borders\vbcode.txt
文件 144 2009-04-23 10:19 ChartWebSamples\Appearance\TOCNodes.xm
文件 519 2009-04-23 10:19 ChartWebSamples\Appearance\UsingGaps3D\cscode.txt
文件 581 2009-04-23 10:19 ChartWebSamples\Appearance\UsingGaps3D\sampleConfig.xm
文件 6300 2009-04-23 10:19 ChartWebSamples\Appearance\UsingGaps3D\usinggaps3d.aspx
文件 1560 2009-04-23 10:19 ChartWebSamples\Appearance\UsingGaps3D\UsingGaps3D.aspx.cs
文件 569 2009-04-23 10:19 ChartWebSamples\Appearance\UsingGaps3D\vbcode.txt
文件 31744 2009-04-23 10:19 ChartWebSamples\App_Code\ANSEController.cs
............此处省略1534个文件信息
相关资源
- 60个HFSS 仿真模型库
- DELPHI与西门子200PLC的串口通信实例
- mybatis连接oracle实例
- LabVIEW钢琴实例
- 通信软件的具体实例──基于Socket的
- vrml学习实例
- 汇编语言实例
- 51单片机基于protues的几个仿真实例
- S7-200模拟量编程实例
- SIP电话实例
- 4 1视图建模教程实例大全
- FPGA在步进电机驱动上的应用实例及代
- 基于Apache Mina实现的TCP长连接和短连接
- js万能播放器,网页播放插件实例
- MFC网络编程实例
- Zebra打印实例Delphi
- 软件工程(数据流图) 实例
- PSCAD风电建模实例双馈风力发电机的
- virtuoso实例教学
- VHDL学习及实例(100个例子)
- 软件工程实例订票系统
- dreamweaver网页制作实例
- 影像租赁系统ER图实例(附有系统要求
- VHDL语言编写的100实用的例程
- 上传大文件并显示进度条控件实例
- 组态王6.53树形控件实例
- CAD ARX 开发实例
- 代码审查表和代码审查实例
- (思科华为)路由器配置实例--各10
- Quest3D 2个动画相机切换实例
评论
共有 条评论