loadstate.aspx
来自「掌握学习.net开发的非常好的资料」· ASPX 代码 · 共 33 行
ASPX
33 行
<%@ Page Language="VB" 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">
Sub Page_Load(sender As [Object], e As EventArgs)
' 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 Then
Chart.Annotations(0).Label.Text = "Go to the sample that saves the myChart.xml file"
Chart.Annotations(0).URL = "SaveState.aspx"
End If
End Sub 'Page_Load
</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 + -
显示快捷键?