if 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.

Answer Posted / karthi

Clicked Button event is binded through view-state. Which is
in encrypted format in the name of attribute(_viewstate) in
the browser page source

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of cookies in asp.net?

752


What does mvc represent in asp.net? : asp.net mvc

742


What is application and session in asp.net?

698


What is viewstate? In which event of the page life cycle, is the viewstate available?

793


Can you explain one critical mapping?

737


Please brief not about xsd,xslt & xml?

746


What is syntax code to send email from an asp.net application?

753


Can we have multiple master pages in asp net?

708


What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

714


i want the asp.net technical questions and answeres

1795


In asp.net, how can you validate drop down box?

811


How do cookies work?

765


What is a web based system?

671


What are the various session state management options provided by asp.net?

734


If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?

2201