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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:23:34+00:00 2026-06-11T06:23:34+00:00

Scenario: I have written an MVC wizard that automatically uses ajax if javascript is

  • 0

Scenario:

I have written an MVC wizard that automatically uses ajax if javascript is enabled in the browser. Each step of the wizard is a PartialView (I’m using ASP.NET MVC 3).

All works fine.

The problem is refreshing the page if, for example, the user’s status changes as a result of how she fills in the wizard. EG, if the wizard logs the user in, or registers them. As the wizard ‘moves’ from step to step by getting Partial Views via AJAX, the page doesn’t get refreshed to reflect the change in the user’s status (eg, an anonymous user is now registered).

What I want to do:

Essentially, when I need a full page refresh, I need to AUTOMATICALLY run the following on the client AFTER delivering the Partial View corresponding to the current step of the wizard via AJAX:

location.reload();

The Problem:

As the DOM has been modified via AJAX, I don’t know how to make my javascript (location.reload();) run WITHOUT user intervention (eg, clicking a button).

Any suggestions? I have been off work for a while and am struggling to get back up to speed.

  • 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-11T06:23:35+00:00Added an answer on June 11, 2026 at 6:23 am

    For now, I have solved my problem using the code in the following article:

    Redirecting after AJAX call, when using ASP.NET MVC

    I like the approach discussed in the article because it results in reusable code, in a very MVC way – I already have a base controller (AjaxController.cs) where I encapsulate all my AJAX aware code and this is a nice addition to it.

    However, there are two issues with this approach:

    1. I have to redirect away from my wizard, so it only works for the final step of the wizard. If the user’s status changes half way through the wizard, I am still jiggered.

    2. I would still like to know how to refresh my page after an AJAX call, rather than just redirecting like this.

    So if anyone has the answer, I will gladly give them the biscuit.

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

Sidebar

Related Questions

The Scenario I have written a Silverlight 3 Application that uses an SQL Server
Scenario I have a windows service written in C# that performs some processing based
I have written a set of javascript functions that allow me to validate user
Scenario I have a Node.JS service (written using ExpressJS ) that accepts image uploads
Scenario: I have a webpage that needs to make XMLRPC calls from Javascript, and
I have written a code that I use for cropping purpose. The scenario is
Scenario: - We have registration form that checks for errors via AJAX - Fields
Here's the scenario I anticipate: I have an app written in PHP which has
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
Scenario: I have a console application that needs to access a network share with

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.