Click here to Skip to main content
15,896,514 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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..
Posted
Comments
Sergey Alexandrovich Kryukov 26-Jul-14 1:45am    
Not clear. Normally, nothing is "overwritten" without developer's intention. You just messed up something, but how can we know where and how?
—SA
ZurdoDev 26-Jul-14 11:08am    
True.
shabarinadh.v 26-Jul-14 6:33am    
why would u always make such comments? is it intentional?
ZurdoDev 26-Jul-14 11:09am    
SA is right. By default it won't overwrite things which means you are doing something incorrectly. Perhaps they are all using the same Session key or something. But there is no way anyone can help you unless you click on Improve question and show us the code that is not working.
Sergey Alexandrovich Kryukov 26-Jul-14 12:44pm    
Intentional — to help you to find achieve some results. In this case, one of the ways to do so would be adding more information to your question. If you don't want to do so or feel it difficult, feel free to ignore the comment.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900