c# - FindControl() returning copy? -
I FindControl to set the value of a dropdown list on a page ().
For some reason, it appears that FindControl () returns a copy of the control object against a reference, I lack a copy constructor for the control that was under the impression Will not this happen due to this?
& lt; EDIT & gt;
OK, it recommends that it is not actually returning the copy, it is not only setting the visibility of a control to me, the other properties that I am working in is fine.
Do anyone have this information that why can this happen? I have tried to install it in Quick-clock mode, and seeing the value directly, and it is not actually changing the value!
& lt; / Edit & gt;
& lt; Edit & gt; (Two)
Well, I'm in it Pej_lod, and it uses a Gridwu is not (I like you guys to believe that I FindControl to a search () am.
I have to perform dynamic number of lists named me Similarly, because a set of operations have been, and it is better to be in the loop than hard code. < / P>
& lt; / EDIT & gt;
Can anyone help?
Cheers, Ed
edit:
Wow, wait ... do you see visually property Setting it to true
? In your comment, you mention that it immediately changes back to the visible
property false
if it Parents are set to go invisible, even if you tell how many times the value should be true