Updating web pages with ajax
The advantages are extensive – the state of your multimedia (such as Adobe Flash or Windows Media) is unchanged, bandwidth costs are reduced, and the client does not experience the flicker usually associated with a postback. NET technology brings an object-oriented and event-driven programming model and unites it with the benefits of compiled code.However, its server-side processing model has several drawbacks inherent in the technology: Enter Microsoft's ASP. AJAX, which stands for A synchronous J ava Script A nd X ML, is an integrated framework for providing incremental page updates via cross-platform Java Script, composed of server-side code comprising the Microsoft AJAX Framework, and a script component called the Microsoft AJAX Script Library. NET AJAX extensions also provide cross-platform support for accessing ASP. This whitepaper examines the partial page updates functionality of the ASP.This prevents the control from flashing in the browser if the update occurs very fast. NET AJAX Extensions is the ability to do a partial or incremental page updates without doing a full postback to the server, with no code changes and minimal markup changes.If you were to look at the rendered source of the page after clicking the button, it will confirm that in fact a post-back has not occurred - the original label text is still part of the source markup, and the label has changed through Java Script.
I'd say the easiest way is for your client webpage to make an ajax request every x seconds to update itself with the latest data.
NET AJAX Extensions, including Web Services access and JSON serialization - Java Script Object Notation) and includes an Update Panel and Content Template within the main Web Forms page by default.
Sometimes, you might need to automatically update a Web page with dynamic elements.
Because a majority of Web applications involve reading data and not updating it, one-way data binding keeps the size and complexity of the page architecture to a minimum for the most common scenarios.
However, there are times when you do want to update data. If you are using a dataset, you can write changes to the dataset and then call the data adapter to send changes from the dataset to the database.
Is it possible to push the data to the client rather than pull?