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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:20:25+00:00 2026-05-24T08:20:25+00:00

In an ASP.NET MVC 3 application, we have a bunch of data that needs

  • 0

In an ASP.NET MVC 3 application, we have a bunch of data that needs to be displayed on a page but because not all the data will be used by the user on every page view, we have added a bunch of empty divs to the page and when the user clicks on the title above the div, it is then loaded with the appropriate data via and AJAX request.

Example:

<h3>@Ajax.ActionLink("Contact Information", 
                     "ContactInformation", 
                     "Customer", 
                     new { id = Model.Id}, 
                     new AjaxOptions { UpdateTargetId = "ContactInformationContainer" })</h3> 
<div id="ContactInformationContainer"></div>

The problem with the code above is that every time the link is clicked, the data is reloaded. How can we make it so that the link or text can still be visible after a click but any subsequent clicks will not submit another AJAX request.

Thanks

  • 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-24T08:20:26+00:00Added an answer on May 24, 2026 at 8:20 am

    You need to add javascript handlers to the AjaxOptions events OnBegin and OnComplete. Set a flag when the tab is loaded (e.g. OnComplete) or maintain a list of loaded links. You just need something to maintain link state for the current page. Before the link is loaded, return false in the OnBegin if the link has previously been loaded.

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

Sidebar

Related Questions

In my ASP .NET MVC application i have a link that refreshes the preview
I have an Asp.Net MVC application that works in the vs.net development web server.
In my ASP.NET MVC application I have a number of threads that wait for
in my asp.net-mvc application I have a statis MvcApplication that calls a static CreateContainer()
I have an ASP.NET MVC application. In the application, I have a bunch of
In an asp.net mvc application I have a method that returns a JsonResult to
I'm working on my first ASP.NET MVC application and have a strange issue. All
I have an asp.net mvc application and I have a page for presenting meteo
I have an ASP.NET MVC Web Application that interacts with a SQL Server 2008
I have an asp.net mvc application that allows images to be uploaded. I am

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.