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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:47:10+00:00 2026-05-17T15:47:10+00:00

I need to include a header and footer currently located in an asp page.

  • 0

I need to include a header and footer currently located in an asp page. The page takes the language ID and gives you the correct header for the page you are viewing.

I was going thru this: http://forums.asp.net/t/1420472.aspx and this particular fragment seemed to explain it better tho I could not wrap my mind around it.

Hi, instead of using include tags, you could compose your page this way:

Your .NET application here
You can
then implement in codebehind remote
header and footer download logic and
set them in the Literals’ Text. After
downloading from the remote site, I
would suggest to store the header and
footer in the application’s Cache to
avoid too many connections to the
remote server. If the same
header-and-footer are shared from many
pages in your project, moving this
structure to a MasterPage could be
useful.

Kindly assist.

  • 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-17T15:47:10+00:00Added an answer on May 17, 2026 at 3:47 pm

    Well, it would be applicable if header/footer content is coming from some other (remote) server. So the suggested solution is to

    1. Write code to download header/footer content from remote server
    2. Cache the content so that you don’t have to download it again and again.
    3. Use literal controls as placeholders on page and set its text to this downloaded content from code-behind.

    Now, this may or may not be applicable to your problem. From where does you get the content for header/footer. If its some helper class/method then you can directly call it to set the literal text. You can even do that is master page making things even simpler.

    Edit: Additional information requested by OP

    You can use WebRequest for downloading content. See this article to get started.: http://www.west-wind.com/presentations/dotnetwebrequest/dotnetwebrequest.htm

    Refer below to get started on caching:

    http://www.asp.net/general/videos/how-do-i-use-the-aspnet-cache-object-to-cache-application-information

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

Sidebar

Related Questions

Usually I have the main page (index.php) that include header/footer/menu and the content of
I have a .txt file that I need to include into a page, that
I need to include a header graphic in all of my activities/views. The file
I need to include a copyright statement at the top of every Python source
Why do we need to use: extern C { #include <foo.h> } Specifically: When
I need to modify the following MySQL statement to include information from a third
Why do we need both using namespace and include directives in C++ programs? For
If we need to issue a bug patch that does not include current development
I need to make some reflective method calls in Java. Those calls will include
Need a function that takes a character as a parameter and returns true if

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.