how the server side identifies button click event

Posted by Karthime under ASP.NET on 4/6/2012 | Points: 10 | Views : 1227 | Status : [Member] | Replies : 2
hi i have one doubt of button click in asp.net, i have placed the button control with the onclick event like <asp:Button ID="mybutton" runat="server" Text="Insert" onclick="mybutton_Click" /> and some other controls(buttons, textboxes) in .aspx page. When i run the page, the button displays in the page source of the browser like <input type="submit" name="mybutton" value="Insert" id="mybutton" /> here, it does not display the onclick event, then how the page calls the button click on the server side, how the server side identify which button cause the submit , and how this page moves to the server side.

A.Karthi


Responses

Posted by: Hariinakoti on: 4/6/2012 [Member] Starter | Points: 25

Up
0
Down
Check source code karthi.Some tags are missing.Try again.

Thanks & Regards
Hari

Karthime, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthime on: 4/7/2012 [Member] Starter | Points: 25

Up
0
Down
Hi thank you for your reply, that is my interview question, how the server side identifies which submit button caused the event among the two or more submit type buttons

A.Karthi

Karthime, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response