Access to the <body>
tag is restricted as it is in masterpage. To automatically trigger a postback when the page loads, you can use the following script:
<script type="text/javascript">
window.onscroll= __doPostBack("<%= button.ClientID %>", "");
</script>
Where should this code be placed? Placing it just before the </asp:Content>
tag results in a 'Not implemented JS' error.
Any suggestions on how to implement this successfully?
Note: The reason for triggering the postback is to populate an updatepanel when the page loads.