ASP.NET Chart Controls in SharePoint 2010
2012-06-21 21:38
549 查看
sharepoint2010自带的图表webpart已经够不错了。功能强大,图表漂亮。支持的数据源也多。但是有个时候确实满足不要了特定的要求,比如跨网站集访问数据源。虽说有Excel Services,但是死活配置不成功,于是乎想利用Asp.net for chart(.NET3.5版本)控件自己定义一个。
1、首先需要引用System.Web.DataVisualization.dll
2、开发,此过程省略。
3、发布到sharepoint2010注意事项
需要配置站点下的web.config,配置如下
1. The web.config entry for <httpHandlers> is: <httpHandlers> <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" /> </httpHandlers> 1. The web.config entry for <handlers> is: <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 3. The web.config entry for <appSettings> is as follows (make sure that the folder mentioned is present and the web site's account can write to it): <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\Temp\;" />
1、首先需要引用System.Web.DataVisualization.dll
2、开发,此过程省略。
3、发布到sharepoint2010注意事项
需要配置站点下的web.config,配置如下
1. The web.config entry for <httpHandlers> is: <httpHandlers> <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" /> </httpHandlers> 1. The web.config entry for <handlers> is: <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 3. The web.config entry for <appSettings> is as follows (make sure that the folder mentioned is present and the web site's account can write to it): <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\Temp\;" />
相关文章推荐
- Deploying an ASP.NET HttpHandler to SharePoint 2010
- Rapid Business Development: Lightswitch vs. Dynamics CRM vs. SharePoint 2010 vs. ASP.NET MVC 3
- Session state cannot be used in ASP.NET with Windows SharePoint Services
- ASP.NET MVC 3 Razor Views in SharePoint
- Creating a SharePoint BCS .NET Connectivity Assembly to Crawl RSS Data in Visual Studio 2010
- asp.net in sharepoint
- 电子书下载:Pro ASP.NET SharePoint 2010 Solutions: Techniques for Building SharePoint Functionality into ASP.NET Applications
- Backup and Restore in SharePoint 2010
- 解决:装了Windows SharePoint Service(WSS) 以前的ASP.NET无法运行了
- delegate control in sharepoint 2010
- (转)Support answers on sandboxed solutions in SharePoint 2010
- tCompressedString in SharePoint 2010 Content Database
- [收藏]Dynamic Controls in ASP.NET
- Find error messages with a Correlation ID token in SharePoint 2010
- Web Parts: From SharePoint to ASP.NET 2.0
- Integrating Sharepoint 2010 and SQL Reporting Services 2008 in 6 easy steps
- [Override]Using Developer Dashboard in SharePoint 2010
- Forms Based Authentication FBA by AD in SharePoint 2010
- Add Ribbon button and menu item in Sharepoint 2010
- Available Field Types in SharePoint 2010