Problem - loop through a repeater for controls

I was using ASP.NET, C#, and wanted to auto translate some controls on a Page. I had no problems looping through controls like the GridView but when I tried the Repeater control I ran into problems. No controls or items were found when looping through it.

The problem was that the controls/items were created at a later stage than Page_Load where my function was executed.

I moved my function to Page_PreRender and everything went just fine..

1 comment:

Carol said...

Thanks for the post! It was helpful. Damn Page_PreRender. :)