Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I had made a site for client in which users can make request for songs, there's a database having songname, by whom, written by, sang at etc. The site is hosted and working fine.
The way the admin gets to know what is asked for is by using the website but now he wants that there be a desktop application which displays all the requests so he does not have to log in and use the website
I do have an idea to get this done, but I am hoping for a well known established way. I am using C# asp.net.
I think you can create an Http Handler. This handler will listen to the request and you can log them in a database, and the windows application will read from the database.
You can simply use Timer in windows application.
Set your Timer to either 1 min or 2 min as per your need.and on its Tick event you check the live database whether is there any new request come or not..
If new request come then you can show some notification or something like this...
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
user should sign off automatically after few minute, like 20-30 minute? and get back to the login page, even if they doing something on website, i'm using mvc5.
can IIS overwrite our web.config's session timeout changes ?
Identity server provides you with everything you need to handle session length and a variety of other features to suit your needs. Take a look at the following guide that will get you started in understanding identity server.
The timeout of each user gets checked against the identity server security store and you can renew / revoke access tokens as needed.
Getting started with identity server 4
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have an asp.net c# website which members complete a form which is stored in sql server. After 24 hrs, I would like to send a notification to a specific group of users if the form status has NOT changed. Is this achievable from within asp.net?? Any help is appreciated
I have done it several times and there are many ways to do it. One simple way is to check every X minutes if you need to send any notifications. If so, you send them.
For example: every 60 minutes you check if there are any forms that have been on the same status for 24hs. If so, you send a notification.
If you have full control of the server, I would recommend you to create a Windows Service to perform this job. ASP.NET was not built for long running tasks so that's why I'm suggesting to create a Windows Service.
One more thing, create a log table for this task so every time you send a notification, you add a row on that table. That's gonna help you debug any issues you might have. Also, remember to mark the rows where you have already notified the customer to avoid sending a notification twice. I always like to add a double check before sending the notification.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to develop 1 chat functionality in my ASP.NET website, I have 1 Registered_User.aspx page and here in this page I want to show all the registered users with online and offline mode, after that when I select the online user for chat one message should be delivered to that user in the form of Accept/Decline and if user accept the chat then chat will be start otherwise chat will be decline.
You can implement everything you want just by using SignalR which is a new library for ASP.NET developers that makes it incredibly simple to add real-time web functionality to your applications. What is "real-time web" functionality? It's the ability to have your server-side code push content to the connected clients as it happens, in real-time.
You'll find a tutorial for Getting Started with SignalR 2
For your purpose you can establish a temporal connection perhaps by notification then establish the persistent one.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a website which have more than 1000 users. I want to update the content of my site in every 10 sec.
Suppose if one user update anything in a table so it will reflect to other logged in user. But remember the user is ideal.
He doesn't press refresh on his browser.
I think of applying auto-refresh in every 10 sec through jquery which call the ajax post and gets back the
updated result. But with my approach if 1000 users are online so my server will be hit by 1000 times. I want some optimized way to do this. Any suggestions
Setup ajax push instead:
have the browser invoke a remote function on load.
Then on the server wait for an event (new information to send out) then return it to the browsers. This may be easiest with node.js.
You will have to handle connections dropping depending on the reliability you want to implement.
Here's a discussion of Ajax push with php:
Ajax push system
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am searching for the best way to create a automatic mail system which fires every day (e.g. 00:00:00) and sends a list of mails.
Which is the best option to perform this task without slow down my application or harm to the server.
I don't want to use windows service to achieve this task. because i am using a shared windows hosting and they don't allow me to run it on the server
Thank you.
Which database do you use ? If its MS Sql Server You can use
THE sp_send_dbmail as a part of a stored procedure to send email.
http://technet.microsoft.com/en-us/library/ms190307.aspx
You can then set up the stored procedure as a Sql Server Agent job to run at regular intervals as shown below
http://www.c-sharpcorner.com/UploadFile/raj1979/create-and-schedule-a-job-in-sql-server-2008/
You could put WCF service with Quartz.NET http://quartznet.sourceforge.net/ aboard on the same IIS or on another machine.
This approach also allows you to have API to control your scheduler.
Regrads.