DeMoNio-HaCk
New Member
I used asp button control,after rendering in browser that control doesn't have click event property.if we click that button ,how exactly its calling that sever side button click event.ASPX code:\[code\]<asp:Button ID="Button1" runat="server" Text="Button" OnClick="TestClickEvent" />\[/code\]In Browser:\[code\]<input type="submit" name="Button1" value="http://stackoverflow.com/questions/15678481/Button" id="Button1">\[/code\]To set __EVENTTARGET the following code rendering in browser ,but how that control call this method..\[code\] function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = http://stackoverflow.com/questions/15678481/eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } }\[/code\]