用户控制相同aspx页面问题中的多个实例 [英] User Control Multiple Instances in Same aspx page issue

查看:73
本文介绍了用户控制相同aspx页面问题中的多个实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一些公共财产的用户控件



我使用这个用户在aspx页面中控制,我在一个aspx页面中包含了8个用户控件实例。



属性在aspx页面中设置。





即.. PathMode(String),MultipleSelection(bool)......



问题是,虽然我在多个实例中为属性设置了不同的值,但其他实例属性会被

顶级实例属性值覆盖...



这会导致代码逻辑中出现不适当的调用...



如何使所有实例都拥有自己的属性而不被顶层实例覆盖.. ?



任何建议都表示赞赏..



提前致谢..

Hi,

I have a user control with some public properties

I use this user control in a aspx page, I have included 8 instances of this user control in one aspx page.

properties are set in aspx page.


viz.. PathMode(String),MultipleSelection(bool)......

issue is, though I have different values set for properties in multiple instances, other instances properties are overwritten by
top level instance properties values...

this leads to inappropriate calls in the code logic...

How can I make all instances have their own properties not overwritten by the top instance..?

any suggestion is appreciated..

Thanks in advance..

推荐答案

这篇关于用户控制相同aspx页面问题中的多个实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆