ComponentArt Web.UI控件的bug及解决办法
2004-11-25 21:12
543 查看
在使用ComponentArt Web.UI 2.0.1983控件的过程中,如果Web.UI控件的EnableViewState在ASPX页面中设置为False(也就是在VS.NET设计器中设置属性),就会发现DataGrid控件的PageIndexChanged事件和DeleteCommand等由_doPostback触发的相关事件都不能被触发,而且PostBack以后DataGrid上的数据会丢失(即使ViewState设置为True也没有用)。
解决办法如下,或者见ComponentArt Knowledge Base Q10048
Workarounds
There are a couple of workarounds for this problem:
1. Enable viewstate for the Web.UI control.
2. Instead of disabling viewstate in the control tag with EnableViewState="false", disable it in Page_Load:
Remove the assignment EnableViewState="false" from the control tag in the .aspx page;
Set the property in the Page load phase:
private void Page_Load(object sender, System.EventArgs e)
{
Menu1.EnableViewState = false;
...
}
解决办法如下,或者见ComponentArt Knowledge Base Q10048
Workarounds
There are a couple of workarounds for this problem:
1. Enable viewstate for the Web.UI control.
2. Instead of disabling viewstate in the control tag with EnableViewState="false", disable it in Page_Load:
Remove the assignment EnableViewState="false" from the control tag in the .aspx page;
Set the property in the Page load phase:
private void Page_Load(object sender, System.EventArgs e)
{
Menu1.EnableViewState = false;
...
}
相关文章推荐
- 学会将SYS_GUID和序列作为主关键字
- Quick .Net File Download Security
- WAP Push Quick Start
- C# Key Processing Techniques
- 实战dailybuild-cc.net的配置
- 软件测试实践系列之三、四已经完成
- JBuilder在编译时丢失源代码字符
- JBuilderX中文字体的问题
- Google desktop search VS msn toolbar suite.
- [原创] GUI原理2 - 矢量线条
- [理论] GUI原理1 - 色彩王国
- 2004.11.23,Tue - 很久没有喝酒了
- Question About Compile Xvid_Bench Please
- Question About Compile Xvid_Bench Please
- 通过CommandBuilder对DataSet数据进行添加、修改、删除
- J2ee学习流程
- 使用JBuilderX+MSSqlServer快速学习Hibernate的示例
- QuickReport绘制中国式报表
- Lost Temple ZvT Guide
- 小试 priority_queue