Solved

Getting Live Data By everybody in a multiuser environment

Posted on 2006-06-29
3
231 Views
Last Modified: 2013-11-13
Hi,
I am working on an application which will be used by many users at a time. According to the business requirements, the data statistics is displayed to the user based on which he will take decision. At the same time other users are updating the data and viewing the data.
Is there a way in Microsoft .NET environment  and MS SQL Server to refresh the data at the client end (datagrid) as soon as some other user makes changes to the related data without the user intervention.
I am using both the web forms and windows forms.

Also, is it possible to refresh the client data without distracting the user from the whole page/form/grid refresh.
0
Comment
Question by:akshay_sumeru
3 Comments
 
LVL 40

Accepted Solution

by:
Richard Quadling earned 500 total points
ID: 17009249
Yes.

The current buzzword for this sort of thing is AJAX.

Essentially the browser/.NET app makes request to the server on a regular basis for new data. This request happens behind the scenes. The response contains either NOCHANGE or the data to upgrade the display and client side code alters the environment.

I don't use .NET and don't really know where it fits in all of this.

If this was a normal web page...

Browser
1 - Use a hidden frame to get the data from the server. The visible frame uses JavaScript to extract the data and updates the display. No page refresh. Older method.
2 - Use XMLHttpRequest (either IE's ActiveX or built in object for FireFox, et al). Same sort of logic as 1.

There are MANY examples of AJAX sites. Googlemail for example.

For .NET, then I think you do the same sort of thing. Either use a hidden frame and use client side scripting to get the data from the frame onto the new page, or XMLHttpRequest.

One thing to be aware of, if your server side code generated the actual javascript required by the client to do all the changes, all the client code is basically 1 eval statement.

Very simple.

0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question