When referencing ID's of ASP.NET server controls via JavaScript, you must use the ClientID
attribute of the control. The ClientID
attribute outputs the full client side ID of the control.
This should work:
<script type="text/javascript">
function dosth() {
document.getElementById('<%=btnload.ClientID%>').click();
}
</script>