Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9214425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:58:16+00:00 2026-06-18T01:58:16+00:00

I am working on an MVC 3 web applicaton (.NET Framework 4, IIS7) that

  • 0

I am working on an MVC 3 web applicaton (.NET Framework 4, IIS7) that acts as a front end for a custom ID card printer built on some legacy technology. Without going too far in to the details, when clicking “Print” the web app writes a row with the card info to the database and returns. Then a service on the back end picks up the row and handles the actual printing of the card. Once the back end service is finished, it updates the row with a status column indicating success or failure.

Right now the application POSTs the data (via jquery ajax) and once the row is written to the database the controller returns success which is displayed to the user. Because of the setup I’ve described, this may or may not actually reflect reality because the service or card printer may have a problem.

We have a new requirement to make the UI “wait” to update with or success or failure based on the update to the row from the service. It is already setup in an asynchronous way on the client side via the jquery ajax call, and I’m not worried about handling it on the front end. I’ve looked at SignalR and the like, and have this part of it covered.

What I am looking for is information (links & articles, not a solution) on how to deal with it correctly on the web server side. I do not want to block incoming requests to print while polling the database periodically from earlier requests. From a high level, I want to know what the best way is to set up the controller and necessary background process that will:

  1. Accept the request and write the row to the database
  2. set up a background polling process, then return control to ASP.net
  3. poll the database ever so often until the row is updated (or a timeout is reached)
  4. return an answer to the client

I am no expert on threading, but know enough to know that I’m in dangerous territory if this is done incorrectly. Any help is greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:58:17+00:00Added an answer on June 18, 2026 at 1:58 am

    I would comment but I do not have enough rep.

    Why the focus on the server pushing to the UI? You say that the form writes the row the the database and then shows “Success” to the screen, which may not be the real status. At any point during the printing process can you query the database and find the latest status?

    Is there something preventing you from having the UI update a section of the page with the latest status every X seconds? Have the UI pull the info instead of the server pushing it out.

    I have a page that shows logs records from a database. Each day a process begins that writes more records to the log and it is useful to have a autorefreshing ability to monitor the process.
    On that page I have a Ajax form that makes a request to the controller which outputs a new table in a partial view. This partial view is put into the UpdateTargetId of the Ajax form. For the autorefreshing I utilize the javascript setInterval() function to submit the Ajax form every X seconds. There are also additional callbacks that can be specified such as OnSuccess where you could check for specific return conditions.

    AjaxOptions class for Ajax.BeginForm

    Example form

    setInterval() from w3schools

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a Java web application (Adobe Flex front-end, JPA/Hibernate/BlazeDS/Spring MVC backend) and
I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that
I'm working on an ASP.NET MVC web application that will be deployed across multiple
I'm working on an mvc .net web application and I'm using Entity Framework. In
I'm working on an mvc .net web application and I'm using Entity Framework. In
I'm working on an mvc .net web application. I hava a database that contains
I'm looking for a working sample of an ASP.NET MVC web application that uses
I am working on a .net mvc web application that has a bunch of
I'm currently working on an Asp.net MVC Web application. In my solution, there're two
Recently i am working on migrating the ASP.NET Web application to MVC. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.