[Mono-aspnet-list] Setting visibility to controls inside Repeater

Stifu stifu at free.fr
Tue Mar 22 06:34:18 EDT 2011


Could you please file a bug report with this information, so this bug can be
fixed? Thanks.


pdurchev wrote:
> 
> I've just figured that out.. The problem is that FindControl doesn't
> searche for the controls as expected. What happens is that when you call
> FindControl in internal control (let's say UserControl), the search for
> the control id is started form the page not from the internal control. So
> if you have 2 labels with same ID (for example: lblTest) - 1st inside the
> user control and 2nd inside the page itself, when you call
> UserControl.FindControl("lblTest") it will return the instance inside the
> Page.
> 
> If you override FindControl in your UserControl there is a possibility to
> enter infinite loop.
> 


--
View this message in context: http://mono.1490590.n4.nabble.com/Setting-visibility-to-controls-inside-Repeater-tp2224725p3395996.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list