I have some code on a User Control that looks like this:
<asp:PlaceHolder id="ph1" runat="server">
<script type="text/javascript">
jQuery(function() {
doSomethingAwesome();
});
</script>
</asp:PlaceHolder>
I want to get the contents of the PlaceHolder control. I'm trying to get it in the OnPreRender of the page this control is on. I would have expected that the contents of the PlaceHolder would be be a single Literal control, but the Controls collection is empty.
How can I get the contents of the PlaceHolder control on the server side?