How does the LinkButton post the form back to the server?

 Posted by Ddd on 3/26/2011 | Category: ASP.NET Interview questions | Views: 3263 | Points: 40

It uses JavaScript internally and is rendered as HyperLink.

example: if a LinkButton with ID LinkButton1 is there and its Text is Click, then
the HTML rendered is as follows.

<a id="LinkButton1" href="javascript:_doPostBack('LinkButton1',' ')">Click</a>

javascript:_doPostBack() method is responsible for posting the form and the data
back to the server

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response