Q:how to fire button click event on page load in asp.net automatically
A: you can directly call your webpage onload event like this.
<!–
<body onload=”document.getElementById(‘fit’).click();”>
<form id=”form1″ runat=”server”>
<button id=’rotate_left’ type=’button’ title=’Rotate left’> < </button>
<button id=’zoom_out’ type=’button’ title=’Zoom out’> – </button>
<button id=’fit’ type=’button’ title=’Fit image’> [ ] </button>
<button id=’zoom_in’ type=’button’ title=’Zoom in’> + </button>
<button id=’rotate_right’ type=’button’ title=’Rotate right’> > </button>
<button id=’zoom_out’ type=’button’ title=’Zoom out’> – </button>
<button id=’fit’ type=’button’ title=’Fit image’> [ ] </button>
<button id=’zoom_in’ type=’button’ title=’Zoom in’> + </button>
<button id=’rotate_right’ type=’button’ title=’Rotate right’> > </button>
</div></div>–>
Advertisements
Leave a Reply