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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:29:04+00:00 2026-06-04T06:29:04+00:00

Is there a way to split a single HTML page (purely static, HTML +

  • 0

Is there a way to split a single HTML page (purely static, HTML + JS) in VS2010 (I use VS2010 + ReSharper for my HTML /Js coding) into parts, but get / build a single page at build time.

There was such a feature with Dreamweaver (I have used this years back, think it called libraries). If I was using PHP I’d use something like Include at runtime.

My page contains several div sections serving as tabs, only one visible at time. I want to place the code between these tabs in a single file, to make it easier to maintain. But in the end I do need one single, static HTML file. Again, I want to do this a build time, not at server side.

<DIV>
  many lines of HTML
</DIV>

should be replaced by something like

<DIV>
  #include tab1.html
</DIV>

I could write a script building the static page and hook it into VS2010, but is there some extension or function already existing?

— Follow ups on using T4 —

  1. VS2010 – Assign html code formatting to T4 (.tt) file
  2. VS2010 – disable validation for particular html file (not all files)
  • 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-06-04T06:29:06+00:00Added an answer on June 4, 2026 at 6:29 am

    I ran across this question while searching for something else. You’ve probably moved on, but what the heck, maybe the answer will help someone else:

    You could get so-called T4 templates to do this:

    http://msdn.microsoft.com/en-us/library/bb126445.aspx

    Alternately, Microsoft has similar capabilities in Razor, and it’s more specific to HTML.

    Here is a comparison of the two:

    http://blogs.msdn.com/b/garethj/archive/2011/03/11/t4-vs-razor-what-s-the-skinny.aspx

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

Sidebar

Related Questions

Is there a way to split a huge xul file into small xul files
Is there any way, commonly known or purely theoretical, to have a single link
I have a data april/2010 to jan/2011 Is there any way to split the
Is there a way to generate multiple JAR files from a single project in
Using new style classes (I'm in python 3.2) is there a way to split
Is there any way to use Dapper.NET with stored procs that return multiple result
Is there a way to convert a list of IEEE single-precision (32-bit): String result
is there way how to get name ov event from Lambda expression like with
Is there way to better identify design pattern in source codes, esp. if you
Is there way to mute an audio stream or at least control the volume?

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.