Click here to Skip to main content
15,909,829 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, recently one interview question asked to me, that is if i have the server control like <asp:button id="button1" runat="server" Text="Insert" OnClick="button1_Click"/> in the web page, during the runtime if i right click on the page and view the page source of the page in mozilla firefox browser, in the page source the button control source display in the html format like <input type="submit" name="Button1" value="Submit" id="Button1" /> here it doesn't have the onclick property, then how the event is fired when i click the button, and page is postback, and how the html page source is performing the button click event, even it doesn't have runat="server" and also onclick property in the page source. if anyone knows answer for it please help me
Posted

1 solution

Page will be submited on click with Post method and page view state will be used at server end to call event
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900