PeterBlum SelectedIndexCondition 不等于功能
现在,我们使用 PeterBlum SelectedIndexCondition 来控制是否使用以下代码片段显示某些控件:
PeterBlum.DES.MultiFieldStateController fsc = new PeterBlum.DES.MultiFieldStateController();
PeterBlum.DES.SelectedIndexCondition cnd2 = new PeterBlum.DES.SelectedIndexCondition();
cnd2.Index = desiredIndex
cnd2.ControlToEvaluate = ControlToEvaluate//ListBox, dropdown, etc
fsc.Condition = cnd2;
我希望能够实现相同的功能,除了在未设置所需索引时触发。由于在我的应用程序中动态完成此操作的方式,我无法简单地为除我指定的索引之外的每个索引创建一堆条件。
提前致谢, 本
Right now we are using the PeterBlum SelectedIndexCondition to control whether or not some controls are displayed using the following snippet:
PeterBlum.DES.MultiFieldStateController fsc = new PeterBlum.DES.MultiFieldStateController();
PeterBlum.DES.SelectedIndexCondition cnd2 = new PeterBlum.DES.SelectedIndexCondition();
cnd2.Index = desiredIndex
cnd2.ControlToEvaluate = ControlToEvaluate//ListBox, dropdown, etc
fsc.Condition = cnd2;
I'd like to be able to achieve this same functionality except to fire when the desired index IS NOT set. I cannot simply create a bunch of Conditions for each index other than the one I specify due to the way this is dynamically being done in my application.
Thanks in advance,
Ben
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您将问题发布到Peter 的雅虎论坛,您可能会得到更好的结果。根据我的经验,他会很快给你回复并给出一个好的答案。
You will probably get better results if you post your question to Peter's Yahoo Forum. In my experience, he will get back to you very quickly with a good answer.