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

  • Home
  • SEARCH
  • 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 8878849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:48:43+00:00 2026-06-14T19:48:43+00:00

When the method with the barcode parameter is called, RedirectToAction has absolutely no effect.

  • 0

When the method with the barcode parameter is called, RedirectToAction has absolutely no effect. I can see that it does indeed return to that route in the URL, but the model is not refreshed and it displays stale data.

In the SQL Server profiler I can see that the call isn’t being made to pull back the new data.

How can I force this to happen?

Incidently, the call to: public ActionResult SRScanItem(string barcode) is itself the result of a RedirectToAction from another controller.

I have handful of calls to RedirectToAction("SRPickCollectionItems") elsewhere in the same controller and these all work fine.

Any idea what may be causing this?

public ActionResult SRPickCollectionItems()
{
    IEnumerable<ISRPickingItemSummary> items = 
        SRPickingItemsViewModel.
        GetDisplayableChunk(ApplicationState.CollectionId.ToString(),
                            ApplicationState.AssistantNumber);

    return View(items);            
}

public ActionResult SRScanItem(string barcode)
{
    DataLayer.Instance.AddStockroomFoundItem(barcode, ApplicationState.CollectionId, ApplicationState.AssistantNumber);
    return RedirectToAction("SRPickCollectionItems");   
}
  • 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-14T19:48:44+00:00Added an answer on June 14, 2026 at 7:48 pm

    Maybe the redirect is going to a cached page.

    Could you try and decorate SRPickCollectionItems with

    [OutputCache(Duration = 0)]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

FilenameFilter has an accept method that I can implement to tell system how I
So I have method that generates a barcode and label with that barcode. We
Which method it is called on 3.ToString()? System.Int16.ToString() System.Int32.ToString() System.Int64.ToString()
The method show(); in class Windows for java.awt in deprecated. What can I use
how can i write in( select method in linq? I'm trying to convert :
I'm trying to make a try/catch method to see if a record exist or
An attempt has been made to Attach or Add an entity that is not
I am using retailligence barcode api and using nsxml parser method to parse the
I have to read a 2D barcode that's encoded with base256. When I scan
I put reading barcode in separate method which reads the barcode and put it

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.