how to consume complex data from different pages

Developer III 40 Reputation points
2025-06-16T10:49:37.9966667+00:00

how to consume complex data from different pages

please note that , the data is complex , session , sql , xml ...+ full text catalog.. etc not from one soure , i need easy and fast way to consume data from page1 to page2 using ajax

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
80 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pradeep M 9,530 Reputation points Microsoft External Staff Volunteer Moderator
    2025-06-16T11:32:31.4166667+00:00

    Hi Developer III

    Thank you for reaching out to Microsoft Q & A forum.     

    To handle complex data from session, SQL, XML, and full-text search across pages, centralize the data retrieval in a backend API, then use AJAX calls on each page to fetch and consume this data efficiently. 

    1.Create an API endpoint (e.g., in ASP.NET Core) that gathers and returns the required data from different sources (session, database, XML, full-text catalog) in JSON format. 

    2.Call the API using AJAX (fetch, jQuery, or Axios) on the relevant pages to consume the data dynamically. 

    3.Use session or TempData to pass temporary values between pages, if needed. 

    4.For better performance, consider using localStorage or sessionStorage on the client side. 

    This approach keeps your frontend clean, promotes reusability, and works well across multiple pages while handling complex backend logic.  

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community. 


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.