refreshing datagrid without refreshing the page

a8le

Well-known member
Joined
Oct 27, 2005
Messages
75
Programming Experience
5-10
hi all, is there a way to refresh a datagrid on a usercontrol (ascx) without refreshing the whole page? -a8le
 
Yes and No. Whatever you put on a asp page, when rendered for display in client browser it all is simple html tags. Refreshing the whole page when one element changes is called a Postback. Refreshing one element without postback in done through client-side scripting like Javascript. A single frame may postback without other frames needing to, but for a regular Table which the DataGrid tranforms to in html to update it usually means postback of its containing page. The Usercontrol itself is transparent in the resulting Html. It is possible to make Javascript change the contents of that Table (the DataGrid server-side), this is usually done by asynchronous calls to xml sources, popularly named AJAX (async javascript and xml), and rewriting the table through scripting when xml data arrives. You might have heard of ATLAS, it is the MS implementation and integration of AJAX with ASP.Net 2.0. Read more about it at http://atlas.asp.net
 
Back
Top