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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:06:24+00:00 2026-06-18T00:06:24+00:00

so i have a website made in ASP.NET that uses JS to generate some

  • 0

so i have a website made in ASP.NET that uses JS to generate some DOM elements after getting settings from the users account.

problem is that after i sign out and log in with a different user name i get the generated elements from the previous user and i don’t know why. the code that generates the elements is as follows:

$.ajax({
    url: '@Url.Content("~")' + 'Ticket/GetTvrtke',
    async: false,
    success: function (data) {
        document.getElementById("header_tvrtka_holder").innerHTML = data;
    }
});

and a little afterward its is used as such:
var tvrtke = document.getElementById(“header_tvrtka_holder”).innerHTML.split(“, “);

$.each(tvrtke, function (index, value) {
    $("#KlijentMultiSelect").append("<option value=\"" + value + "\" id=\"" + index + "\" >" + value + "</option>");
});

now when i log off and sign in as a different user the ajax code above doesn’t trigger the getTvrtke URL that gets the settings wich generate the elements and i don’t know why.

  • 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-18T00:06:25+00:00Added an answer on June 18, 2026 at 12:06 am

    Ajax by default caches the response of the calls. YOu can set it to false so that there is a fresh request every single time by using the below at the top of your application.

    $.ajaxSetup({cache: false});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a MVC application that uses the built-in ASP.NET login functions. It
I have an asp.net c# website that I am having a problem getting the
I have an ASP.NET website and am having trouble capturing some specific requests that
I just made quite a large update on a website that uses asp.net. In
I have an ASP .NET website that uses cookieless sessions. When the initial request
Hi, I have built a ASP.NET MVC website that uses Membership, this works fine.
I have made a website using( Asp.net, c# ) and its content in English
I have an ASP.NET application that's made up of several .aspx pages. I want
I have created a test website that contains a single ASP.net index.aspx file that
I have an ASP.NET website that has been deployed since 2008 with plenty of

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.