Last post Nov 28, 2011 07:56 AM by gopalanmani
Nov 24, 2011 05:50 AM|sinhaify|LINK
Define and Describe the differences between IsPostBack, AutoPostBack, CrossPostBack??? Please provied with illustrated examples.
Nov 24, 2011 05:53 AM|MetalAsp.Net|LINK
Nov 28, 2011 02:19 AM|Otomii Lu - MSFT|LINK
Nov 28, 2011 07:56 AM|gopalanmani|LINK
A postback is initiated by the browser, and reloads the whole page, usually when a control on the page (e.g. a button) is changed.
example : http://www.java2s.com/Code/ASP/Page/PageIsPostBackDemoC.htm
With some controls (e.g. dropdownlist,Checkboxes), you choose if changing the control should result in a postback. This property is called AutoPostback.
Controls that support AutoPostback includes:
example : http://asp-net-example.blogspot.com/2009/03/how-to-use-dropdownlist-autopostback.html
Cross Page PostBack
A web form to post-back to a different web form (other than itself)
How to post to a different page
To set a web form to post back to a different web form, in the source web form, set the PostBackURL property of a control that implements IButtonControl (eg. Button, ImageButton, LinkButton) to the target web form. When the user clicks on this button control,
the web form is cross-posted to the target web form. No other settings or code is required in the source web form.
example : http://www.c-sharpcorner.com/UploadFile/DipalChoksi/xpgpostbk_asp2_dc08102006235543PM/xpgpostbk_asp2_dc.aspx
A callback is initiated by java script in the page, and can load/update parts of the page
A method which is invoked when a certain event occurs such as clicking on a button. It also could have another meaning that a page performs a request back to the server (such as an AJAX request).
example : http://msdn.microsoft.com/en-us/library/ms178210.aspx