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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:19:34+00:00 2026-05-20T00:19:34+00:00

So I have these 3 divs on my view called Prepayment.aspx: <div id=keyRateTable></div> <div

  • 0

So I have these 3 divs on my view called Prepayment.aspx:

<div id="keyRateTable"></div>
<div id="shockTable"></div>
<div id="valueTable"></div>

They get populated with HTML upon a button click, and then AJAX runs through JQuery to populate their HTML.

How do I, from ANOTHER MVC View, access the innerHTML contents of that div, and display them on this view as well? The reason why I can’t just do the same process I did on Prepayment.aspx is because that process could take a very long time and if the user already calculated it, we want to just grab the HTML already produced.

  • 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-20T00:19:35+00:00Added an answer on May 20, 2026 at 12:19 am

    In this other view (assuming it is partial and on the same page) you could use javascript and jquery:

    var html = $('#shockTable').html();
    // TODO: do something with the HTML contained in the shockTable div
    // If you want to display this HTML on some other div on the current
    // partial you could do this:
    $('#someDivOnTheCurrentPartial').html(html);
    

    If the HTML is not on the same page you cannot obtain it from another view. It simply doesn’t exist anywhere. You will need to refetch it from the server. This being said if you want to avoid hitting the database or perform some lengthy tasks you could always cache the results or store them into the session.

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

Sidebar

Related Questions

I have a div (maincontent) which is inside another div (container). These divs are
I have a div called block_inside. In it, there are two divs, text_block and
I have two divs placed inside a larger div. Each one of these two
I have these 3 icons enclosed in separate DIVs all of which are enclosed
I have multiple DIVs containing an image in each. When I rollover these DIVs,
I have several divs that share a common class. If one of these divs
I have several divs with id=scroll_1, scroll_2, scroll_3, etc... When any of these divs
I have about 50 p tags and next to these are again 50 divs.
I have those 2 divs nested into the yellow div, and as you can
I have a set of Div's which act as buttons. These buttons have a

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.