六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 37|回复: 0

关于点击按钮查询显示Dundas图报告Series["jjj"]丢失情况的处理

[复制链接]

升级  47.05%

629

主题

629

主题

629

主题

探花

Rank: 6Rank: 6

积分
1941
 楼主| 发表于 2013-2-1 11:23:51 | 显示全部楼层 |阅读模式
问题:
在点击按钮查询显示Dundas图时,报错:Series["jjj"]丢失。
查了一下错误日志:发现,在PostBack时,Series的状态丢失。
解决方案:
在Chart中加一个属性 CallbackStateContent="All" ,即可保存和恢复Series和DataPoint的所有状态。
相关文档:

            public enum CallbackStateContent : <link tabindex="" keywords="frlrfSystemEnumClassTopic;System.Enum" errorurl="resolveh2link.html" indexmoniker="!DefaultAssociativeIndex" options="0">            
<img class="toggle" alt="" name="toggleSwitch">Members

<div class="section" name="collapseableSection">Member            Description        Auto            Automated selection of save/restore behaviour.        ChartStateOnly            Saves and restores the all chart state without series data points.        SeriesDataOnly            Saves and restores the only chart series data points.        All            Saves and restores the all chart state including series data points.        None            Saving and restoring will be not performed.        
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表