1.By default each button generate a postback of the page to the web server, and as result the page content is send to the web server, the page events are executed and at the end the page is sent back in HTML format to the browser and the browser render the page.
2.To avoid the entire page postback you have more options:
i)set
AutoPostBack
attribute on false and use JavaScript and AJAX call associated with the
OnClick
event; For details about using jQuery and AJAX call in ASP.NET see:
Calling a C# method using jQuery on the client side[
^]
OR
ii)use
UpdatePanel
so only the area of the used panel will be refreshed and not the entire page. See details about update panel:
http://msdn.microsoft.com/en-us/library/vstudio/bb399001(v=vs.100).aspx[
^]