loadstate.aspx
来自「掌握学习.net开发的非常好的资料」· ASPX 代码 · 共 37 行
ASPX
37 行
<%@ Page Language="C#" Description="dotnetCHARTING Component" %>
<%@ Register TagPrefix="dotnet" Namespace="dotnetCHARTING" Assembly="dotnetCHARTING"%>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Drawing.Drawing2D" %>
<HTML>
<HEAD>
<TITLE>.netCHARTING Sample</TITLE>
<script runat="server">
void Page_Load(Object sender,EventArgs e)
{
// This sample will show how chart data and settings can be loaded from a saved xml file.
// Load the chart data and settings from the myChart.xml in the temp directory and use it for this chart.
Chart.LoadState("temp/myChart.xml");
//Change some labels
Chart.ChartArea.Label.Text = "This chart is loaded from file 'myChart.xml'.";
if(Chart.Annotations.Count==1)
{
Chart.Annotations[0].Label.Text = "Go to the sample that saves the myChart.xml file";
Chart.Annotations[0].URL = "SaveState.aspx";
}
}
</script>
</HEAD>
<BODY>
<DIV align="center">
<dotnet:Chart id="Chart" NoDataLabel-Text="Please run the SaveState.aspx sample to generate the xml file." runat="server">
</dotnet:Chart>
</DIV>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?