新建一个文档库Docs
将程序文件都放到Docs中
配置Web.Config
设置允许执行aspx文件
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
<PageParserPaths>
<PageParserPath VirtualPath="/Documents/menu.aspx" CompilationMode="Always" AllowServerSideScript="true" />
</PageParserPaths>
</SafeMode>
注册dll
<SafeControls>
<SafeControl Assembly="ZedGraph.Web, Version=5.1.2.880, Culture=neutral, PublicKeyToken=null" Namespace="ZedGraph.Web" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
</SafeControls>
或将dll文件拷到C:"Inetpub"wwwroot"wss"VirtualDirectories"80"bin
设置WebPart权限级别
<trust level="Full" originUrl="" />
表示完全信任
配置ZedGraph.Web.DLL时要注意
在C:"Inetpub"wwwroot"wss"VirtualDirectories"80 新建 ZedGraphImages 文件夹,并设置安全为Everyone可完全控制。
在aspx中包含其它aspx的方法
<% System.Web.HttpContext.Current.Server.Execute("menu.aspx");%>