28 February 2012 at 10:24pm
Hi orkhan, welcome to the forums
I assume MyLoopFunction() is a function in your Page_Controller? That will not work within the <% control AllChildren %> loop because it returns a set of Page objects (the data model class), not Page_Controllers. So in order for this to work, you'd have to define the MyLoopFunction() funtion in your Page class instead.
28 February 2012 at 11:09pm
What there is not true?
As martimz says - context is wrong. Control is not just a "loop" but also changes "context" you start out int he Page_Controller object, then you move context into the Page object. This is changing to be more clear in SS3.
Just try moving your function from "Applications_Controller" to "Applications" and see what happens...