⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loadstate.aspx

📁 掌握学习.net开发的非常好的资料
💻 ASPX
字号:
<%@ 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -