简体   繁体   中英

Asp.net Chart control in SharePoint 2010

Can anyone help me in storing Chart control's temporary images in SharePoint 2010 Document library/Picture library? Whether it is possible or not ? Actually want to use a webpart with Chart control in it, in a load balanced environment.

I think I got a answer for my query, to store the chart images in SharePoint document library we need to map a document library to a hard disc drive (as I did z:) and then set the chart image handler as: for this to work porperly we also need to change the script manager's async postback timeout property to 3600 as AsyncPostBackTimeOut="3600". The process is taking around 3 minutes (as it first creating the chart images in document library and then downloading those) in my environment which is bit high for the users to wait that much long :( so again searching for some methods that can make the process faster. Hope this can help someone.

The information in the document library is stored in the database so there should be no issues with keeping images there across a load-balanced environment. The images in a document/image library are all URL accessible resources so you should be able to populate ImageLocation property of the chart control and set ImageStorageMode to ImageStorageMode.UseImageLocation. Encapsulating that in the web part should not make any difference than a user control. You may elect to provision the image library and the web part in the same site coll feature.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM