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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:35:11+00:00 2026-05-22T14:35:11+00:00

I have this page, with a Default.aspx working as a master would work, and

  • 0

I have this page, with a Default.aspx working as a “master” would work, and loading child pages with jQuery’s load() function. Something Like this:

    <ul id="navigation>
        <li><a href="Item1.aspx"> Item 1</a></li>
         <li><a href="Item2.aspx"> Item 2</a></li>
    </ul>
    <div id="contend">
         <!-- Ajax loaded pages goes here -->
    </div>
    <div id="footer">
    </div>

The problem is: when the user clicks on some item and, let’s say, chooses to open on a new window (tab), He will obviously see just the items from that page, not the navigation, footer and anything else from the default page…

I’m searching for a workaround..

maybe with anchor control via url? like #item1

  • 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-22T14:35:12+00:00Added an answer on May 22, 2026 at 2:35 pm

    Send an additional parameter with ajax. So you can determine if the request was made by ajax and choose how to build the response.

    Example as requested:

    <script  type="text/javascript">
    $(
       function()
       {
        $('#navigation a')
          .click(
                  function(e)
                  {
                    e.preventDefault();
                    $('#contend').load(this.href,{'isAjaxRequest':true});
                  }
                );
       }
     );
    </script>
    

    If a user clicks the link the usual way, there will also be send a POST-parameter named “isAjaxRequest” , you can check for this parameter, and if it exists, output only the fragment for #contend, otherwise the whole page including header, footer and so on.

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

Sidebar

Related Questions

I have a page like this: <%@ Page Title= Language=C# MasterPageFile=~/TekContent.master AutoEventWireup=true CodeFile=Default.aspx.cs Inherits=_Default
Looked at a tutorial but couldn't get this working: default.aspx: <%@ Page Language=C# ContentType=text/xml
I'm working on an ASP.NET page, using VB.NET and I have this hierarchy: Page
i have the following code on my aspx page: jQuery(#listFondos).jqGrid({ url: '/PorMyController/LoadGridData/', datatype: 'json',
Question about paths while working in Visual Studio. In my master page I have
We have a classic VBScript default.asp page in the root of our site. (This
I am working on an asp.net page where I have used JQuery UI dialogue.
I have a page that is setup like this public partial class _Default :
i have this page . login: fer password: m Note: after login you will
I have this serious: I have ASP.NET page, This page contents Update panel with

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.