Solved

Getting Live Data By everybody in a multiuser environment

Posted on 2006-06-29
3
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
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…

617 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