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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:58:26+00:00 2026-05-25T01:58:26+00:00

I am having an ajax call with is working fine in Mozilla and Chrome,

  • 0

I am having an ajax call with is working fine in Mozilla and Chrome, but not in IE 9.0. The code is as follows:

I am not able to understand why is the myDiv not being refreshed. The save is done accordingly and it is just that the myDiv isn`t being refreshed in IE9.0.

$.ajax({

                cache: false,
                contentType: "application/json; charset=utf-8",
                dataType: "html",
                url: "@Url.Action("Save", "Employee")",
                data:
                {
                    Id: $("#ID").val(),

                },
                success: function (data)
                {
                        $("#myDiv").html(data);                


                },
                error: function (request, status, error)
                { 
                                    }
           });

<div id="myDiv">
            @{Html.RenderPartial("NewPage", Model);}
        </div>

NewPage.cshtml

    @model MvcUI.Models.myModel
<div id="GridDiv">
<table>

</table>
</div>

Controller:

   [Authorize]
    public ActionResult NewPage( int Id)
    {
           return PartialView(new myModel(Id));
    }

    [Authorize]
    public ActionResult Save(int Id)
    {

        myModel.Save(Id);
        return RedirectToAction("NewPage", new {Id = Id});

    }

observation
I have been doing various tests and observed the following behaviours:
In debug mode:
1. First time I do save, save done and table refreshed.
2. second time, the save done and table refreshed.
3. When I do it for the 4th time, the save done, but doesnt reach ActionResult NewPage( int Id), table doesn`t refreshed but some old data displayed…!

In deployed mode:
1. Only First time I do save, save done and table refreshed.
2. Second time, it only saves but does not refresh table data!

I don`t have any error or exception.

  • 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-05-25T01:58:27+00:00Added an answer on May 25, 2026 at 1:58 am

    Have you tried setting the response-expiry headers? I have had issues where IE did not appear to reload the page when you do not set the following:

    <% Response.CacheControl = "no-cache" %>
    <% Response.AddHeader "Pragma", "no-cache" %>
    <% Response.Expires = -1 %>
    

    I’ve put them in ASP tags, but feel free to do this in your controller if you prefer (rather than repeat it in every action, possibly create an initialisation method)

    EDIT:

    As per @learning’s comment, one can also use the OutputCache attribute to do effectively the same thing

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

Sidebar

Related Questions

I'm having a problem similar to jQuery $.ajax Not Working in IE8 but it
I'm having this problem with my AJAX, where it's not working in IE, but
I'm having problems with IE6 and javascript applied to ajax content. I'm not able
I'm having a problem with my ajax call. I'm submitting some info via php
I'm having hard time with this simple ajax call function sendreq() { $.ajax({ dataType:
i am having a little trouble with the following ajax call; function question() {
i am having issue with loading my selector via a jquery ajax load call
Having trouble accessing javascript code in a mixed html/js ajax response. jQuery ajax doc
I've found other threads discussing .load and .ajax with Chrome and IE, but none
I'm having an issue with an ajax call using jQuery. I am posting information

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.