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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:03:09+00:00 2026-05-27T12:03:09+00:00

I have a .csHtml page. The page is populated by calling a method in

  • 0

I have a .csHtml page. The page is populated by calling a method in the contoller using Jquery $.get. The method in the controller makes a database call and returns a partial view. The partial view is rendered inside a DIV tag.

The data is being displayed real time. Now when I hit ctrl + f5, the page refreshes, but it still shows the same data. I put a breakpoint in the controller method and realized that the method in controller is not being called.

The first time the method is being called when I hit F5 and run in Visual Studio. The second time when I refresh the data is not being refreshed.

If I have to see any changes being displayed in the database, I need to restart the visual studio.

Any clue on what could be happenning?? Below is the snippet of code.

// Our onReady actions;
$(document).ready(function () {
    $('#RateTab').click(function () {
        getRates();
    });
});

function getRates() {
    var URL = "home/Rates";

    $.get(URL, function (data) {
        $('#loading').hide();
        $("#rates").html(data);

        //Initialize();
    });
}

Any ideas and suggestions on what could be happenning ??

  • 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-27T12:03:10+00:00Added an answer on May 27, 2026 at 12:03 pm

    I think it’s a cache that is enabled. You can control cache by using the $.ajax method. Try to rewrite it like that :

    $.ajax({
       url : URL,
       type : 'GET',
       cache : false,
       success : function (data) { 
                $('#loading').hide(); 
                $("#rates").html(data);}
    });
    

    Hope it helps.

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

Sidebar

Related Questions

I am using MVC3, in which I have a page let say Home.cshtml with
I have a myPage.cshtml page. i have written a @helper method( myMethod() ) in
I am using an mvc application and in _Layout.cshtml page I have some javascript
I have a cshtml page that shows notes taken from a database in a
I have something like @{ Html.RenderPartial(@~/Views/Management/_Main.cshtml); } Can I change this view without page
I have a button in my .cshtml page. I want to pass the id
I would like to pass parameter from view to controller in cshtml page. This
Mypage.cshtml have a page and have a domain xxx.com and a subdomain test.xxx.com that
I have a page X.cshtml with the following code: @helper CodeTest{ <h1>Test</h1> } And
I have a layout page with the following _app.cshtml <div id=top_right> @{ Html.Partial(_LogOnPartial); }

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.