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 8337727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:22:54+00:00 2026-06-09T04:22:54+00:00

I have a vb.net MVC3 application using RAZOR views. Some of the functions take

  • 0

I have a vb.net MVC3 application using RAZOR views. Some of the functions take a long time to complete due to the fact that they are compiling data from the database. During this long wait the browser screen is white and there is no sign that it is doing whats its supposed to other than the activity ring. What I would like to do is create a progress bar, use some simple math on the count method to determine the progress bar percent complete and show this on the screen instead of the plain white browser screen.. I am certain that I would need to do this with a Jquery widget of some sort. And have looked all over google but nothing seems to be hitting on what I am needing here.. The controller function that is called when the White screen is displayed until it is finished is below:

      Function beginArchive()
        Dim cList As List(Of cours) = db.courses.ToList
        For Each x In cList
            Dim indCourse = x
            Dim courHfile As String = archiveFiles(x.course_id)
            Dim arcCourse As New archive
            arcCourse.cDesc = indCourse.course_description
            If Not String.IsNullOrEmpty(courHfile) Then
                arcCourse.cHandouts = courHfile
            End If
            arcCourse.cHours = indCourse.course_hours
            arcCourse.conNum = Convert.ToInt16(indCourse.courseNum)
            arcCourse.cPre = indCourse.course_prefix
            arcCourse.cRef = indCourse.course_ref
            arcCourse.cSpeaker = indCourse.course_speaker
            arcCourse.cTitle = indCourse.course_title
            db.archives.AddObject(arcCourse)
            db.SaveChanges()
            Dim testSuccess As Integer = delOldFiles(indCourse.course_id)
        Next
        Return RedirectToAction("Index", "Admin")

    End Function

Razor View is this:

@Code
ViewData("Title") = "Archive Previous Conf. Handouts"
End Code
<fieldset>
<h2>You are about to archive all handouts from last years conference. If you continue all of those handouts will be moved to the archive</h2>
<div id="sidebar3">
<p>

@Html.ActionLink("Begin Archive", "beginArchive","handoutArchive")
@Html.ActionLink("Back to Admin Tools", "Index", "Admin")
</p>
</div>
</fieldset>

Any ideas on how I would go about adding a simple progress bar to this which I am assuming would have to be fired by the controller itself…

  • 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-09T04:22:55+00:00Added an answer on June 9, 2026 at 4:22 am

    What you are essentially asking for cannot be achieved with the current design of your page/actions. You are clicking a link that makes a request to your controller. The controller is going to wait until the action is finished before rendering and returning a response. This is different than making an ajax call which would return the data to the current page instead of directing you to a new url. There are many ways to do this, and a lot of them depend on your requirements for how you want it to work.

    If it was me, and I was trying to do a large operation, This is what I would do.
    Display a spinner or some sort of icon with a message saying “this could take awhile” and make an ajax request to your action. When the action returns you can display a message or redirect to a new route.

    An example using jquery

    $.post('beingArchive/2012', function(data) {
      if(data.status === "success"){
            window.location.replace("/success");
      }else{
            $("#error-div").html("<em>Something went wrong!</em>");
      }
    });
    

    This assumes that your beginArchive method returns json like {"status":"success"} or {"status":"error archiving reason blah"}

        [HttpPost]
        Public Function beginArchive() As JsonResult
        Dim status = "success"
    
        Try
                'do the archiving
        Catch e As Exception
            status = "error occurred"
        End Try
        Return New Json(New With { _
        Key .status = status _
    
        })
        End Function
    

    (I’m a c# guy so apologies if the vb.net is not right, it’s just an example of how I envision the implementation of the action).
    Unfortunately, without knowing more about what your implementation of “archiving handouts” is, I can’t really tell you a good solution for showing the progress of the action would be. But I feel like this is a standard solution that many applications use when processing intensive operations.

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

Sidebar

Related Questions

I am developing an ASP.Net MVC 3 Web application using Razor Views. I have
Here's the issue at hand: I have developed an ASP.NET MVC3 application using Razor.
I am creating an ASP.NET MVC3 application using NHIBERNATE. I have a base class
I have a ASP.NET MVC3 application that handles time-consuming processes (copying a large file
MVC3 vb.net Application using built in session management. I have an mvc3 application that
My application is in Asp.Net MVC3 coded in C#.Net. I have Views which contains
I have online form builder appplication in ASP.NET MVC3 with Razor views. It is
I am developing an ASP.Net MVC 3 Web Application using Razor Views. Within the
I have develop small Asp.net MVC3 application using Telerik rad Controls with in that
i have develop a small mvc3 application using Telerik Extension for asp.net mvc3 in

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.