asp.net - how update panel do partial postback and server side function is invoked and control UI updated -


i search google lot know how update panel partial postback. if have 1 button & 1 label inside update panel , when click on button inside update panel partial postback occur , button click server side event called. if button click routine change label value effect after partial postback...i need how update panel call server side function , read response , update control ui @ cliend side.. kind of javascript generate , call make partial postback , how update ui.

if possible please discuss in details sample javascript update panel generate handle postback , ui updation. thanks

if totally new ajax (which stands stands asynchronous javascript , xml), ajax entry on wikipedia starting point there more links link1 or link2:

like dhtml , lamp, ajax not technology in itself, group of technologies. ajax uses combination of:      html , css marking , styling information.     dom accessed javascript dynamically display , interact information presented.     method exchanging data asynchronously between browser , server, thereby avoiding page reloads. xmlhttprequest (xhr) object used, iframe object or dynamically added tag used instead.     format data sent browser. common formats include xml, pre-formatted html, plain text, , javascript object notation (json). data created dynamically form of server-side scripting. 

as can see, pure technological point of view, there nothing new here. of ajax parts there in 1994 (1999 xmlhttprequest object). real novelty use these parts google did gmail (2004) , google maps (2005). actually, both sites contributed heavily promotion of ajax.

a picture being worth thousand words, below diagram illustrates communication between client , remote server, differences between classic , ajax-powered applications:

alt text

for orange part, can hand (with xmlhttprequest object) or can use famous javascript libraries jquery, prototype, yui, etc "ajaxify" client-side of application. such libraries aim hide complexity of javascript development (e.g. cross-browser compatibility), might overkill simple feature.

on server-side, frameworks can (e.g. dwr or rajax if using java), need expose service returns required informations partially update page (initially xml/xhtml - x in ajax - json preferred nowadays).


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -