0

I have just used the NotifyIcon class in a windows application and I think it is really handy. I'm predominantly a web developer so I just wanted to find out if there is anything similar to this for a website.

The website I want to incorporate this into has a Ticket Management module where users can capture tickets/problems and then get responses to these tickets from my client's employees who handle the ticket.

Obviously I realize that the notification or pop up will need to be shown in the page, but is there a way to put a timer on the specific page, or even the Master page (maybe javascript or JQuery), to poll the database every few minutes and check for recently modified tickets and let the logged in user know that a ticket has been updated?

Thanks in advance.

4
  • This site does exactly what you're saying :) Commented Jul 24, 2012 at 14:19
  • Actually, yes it does. But do you know how? Does it use SignalR like Judo suggested? Commented Jul 24, 2012 at 14:27
  • I don't know about this site, but there's a great presentation from Scott Hanselman about SignalIR and ASP.NET MVC hanselman.com/blog/… Commented Jul 24, 2012 at 15:13
  • @kubal5003 SignalR won't work for me. My company is still utilizing MVC 1 in .NET Framework 3.5. Thanks anyway. Commented Jul 25, 2012 at 6:26

2 Answers 2

3

If you need the client to keep an open connection to the server and poll it, I think Signal R will be your best bet for integrating into an .NET project. It is on Nuget but source is at https://github.com/SignalR/SignalR.

Sign up to request clarification or add additional context in comments.

7 Comments

For the sake of pedanticism: this wouldn't be polling. AFAIK SignalR implements a publish/subscribe model.
The connection doesn't have to be kept open. That's why a timer would be useful. Once the the condition is met, it opens the connection, polls the required table and then closes the connection and if any tickets are modified, it notifies the user with a pop up.
@millimoose I only used it on one project but it I didn't see a publish/subscribe model at all. The default for SignalR is long polling but it will also work with WebSockets when available.
Correct me if I am wrong, but SignalR only works with VS2010 i.e. MVC 3 or higher?
It requires .NET 4.0 or higher
|
0

I would recommend familiarizing yourself with Node.js.

Node.js is a strong tool that aids in leveraging javascript as a real-time server management tool.

After you've gotten yourself familiarized with the Node.js setup, you'll want to grab Socket.io. Socket.io provides suppport for the long-polling technique by leveraging against your websocket created by Node.js. Here, we can manage the conditions at which we serve data. This is a huge tool on the developers side in battling against 2 HTTPD ports.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.