.NET news » Components Components Rss Feed

Accessing Server-Side Data from Client Script (Part 1)

When building a web application, we must decide how and when the browser will communicate with the web server. The ASP.NET WebForms model greatly simplifies web development by providing a straightforward mechanism for exchanging data between the browser and the server. With WebForms, each ASP.NET page's rendered output includes a <form> element that performs a postback to the same page whenever a Button control within the form is clicked, or whenever the user modifies a control whose AutoPostBack property is set to True. On postback, the server sends the entire contents of the web page back to the browser, which then displays this new content. With WebForms we don't need to spend much time or effort thinking about how or when the browser will communicate with the server or how that returned information will be processed by the browser. It just works.

While this approach certainly works and has its advantages, it's not without its drawbacks. The primary concern with postback forms is that they require a large amount of information to be exchanged between the browser and the server. Specifically, the browser sends back all of its form fields (including hidden ones, like view state, which may be quite large) and then the server sends back the entire contents of the web page. Granted, there are scenarios where this large quantity of data needs to be exchanged, but in many cases we can use techniques that exchange much less information. However, these techniques necessitate spending more time and effort thinking about how and when to have the browser communicate with the server and intelligently deciding on what information needs to be exchanged.

This article, the first in a multi-part series, examines different techniques for accessing server-side data from a browser using client-side script. Throughout this series we will explore alternative ways to expose data on the server so that it can be accessed from the browser using script; we will also examine various tools for communicating with the server from JavaScript, including jQuery and the ASP.NET AJAX library.

19 Oct 2010, 19:00:00   Source: Accessing Server-Side Data from Client Script (Part 1)   Tags: Components

CircleControl

A circular motion control
17 Oct 2010, 22:16:00   Source: CircleControl   Tags: Components

C++ DateTimePicker in DataGridView

C++ DateTimePicker in DataGridView
15 Oct 2010, 09:36:00   Source: C++ DateTimePicker in DataGridView   Tags: Components

Making the CMFCLinkCtrl Class More Developer-Friendly

Enabling font and formatting changes in the MFC hyperlink control
12 Oct 2010, 13:36:00   Source: Making the CMFCLinkCtrl Class More Developer-Friendly   Tags: Components

Radio Control Transmitter - Joystick

Home built joystick type radio control transmitter based on Arduino
11 Oct 2010, 15:43:00   Source: Radio Control Transmitter - Joystick   Tags: Components

How to Create ProgressBar Column in DataGridView

An article on how to create a ProgressBar Column in DataGridView
10 Oct 2010, 14:04:00   Source: How to Create ProgressBar Column in DataGridView   Tags: Components

A Simple Vector-Based LED User Control

The LEDBulb is a .Net user control for Windows Forms that emulates an LED light. Its purpose is to provide a sleek looking representation of an LED light that is sizable, has a transparent background and can be set to different colors.
5 Oct 2010, 13:34:00   Source: A Simple Vector-Based LED User Control   Tags: Components

Group GridView Data

A custom GridView control which provides you an additional facility to group the data in gridview along with the facility to customise the Group Header and Group Footer
5 Oct 2010, 07:05:00   Source: Group GridView Data   Tags: Components

Paging, Selecting, Deleting, Editing and Sorting in the ASP.NET GridView Control with Keyboard Shortcuts

An ASP.NET 2.0 AJAX Extender to enhance the ASP.NET GridView to page, select, delete, edit and sort rows with keyboard shortcuts.

Arduino Platform - Differential Gap Control (Solar Tracker)

Simple implementation of a differential gap control to track the sun East/West movement.
22 Sep 2010, 14:15:00   Source: Arduino Platform - Differential Gap Control (Solar Tracker)   Tags: Components