How can I access the main page object in the AddedControl event of a user control?
I am trying to run the line of code ScriptManager oSCM = ScriptManager.GetCurrent(this.Page); in that event, but it returns null, even if there is a scriptmanager on the parent page. In the OnInit event in the WUC that same line of code returns the scriptmanger object, but not in the addcontrol. Am I using the page object wrongly in that event - do I need to access it differently?
Cheers
MH