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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:11:35+00:00 2026-06-11T11:11:35+00:00

For one projet, I’ve to generate static .html pages, which are gonna to be

  • 0

For one projet, I’ve to generate static .html pages, which are gonna to be published on a remote server.

I’ve to automate the creation of those files from a c# code, which takes data from a SQL Server database.

Data will be not often changed(every 4-5 month), and this website will be highly frequented.

Since I find the razor synthax of asp.net MVC3 very effective, I was wondering if it’s possible to use asp.net MVC3/Razor to generate those .html pages?

So:

  1. Is this a good idea?
  2. If yes, what is the good way?
  3. If you think to another good manner of doing it, which way?

Thank you for the help

Edit

Regarding answers, I need to make a precision: I don’t want/need to use web caching, for a lot of reasons(load(millions of pages loaded every month), integration(we integrate our page in an optimized apache with, another part of a website), number of pages(caching will only help me if I’ve the same pages a lot of time, but I will have ~2500 pages, so with murphy’s law, except if I put a very high cache timeout, I will have to generate them often). So I really search something to generate HTML pages.

Edit 2
I just got a new constraint :/ Those template must be localized. Meaning that I should have something equivalent to the following razor code: @MyLocalizationFile.My.MyValue

Edit 3
Currently, I’m thinking of doing a dynamic website, and call some http query on it, to store the generated HTML. BUT, is there a way to avoid the http? meaning simulate an http call, specifiy the output stream and the url called(with only GET call).

Our previous load numbers were really underestimated, actually they have a little more than one million visitor each days, ~ 14 million pages loads/day.

  • 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-11T11:11:36+00:00Added an answer on June 11, 2026 at 11:11 am

    I ended by creating a normal asp.net MVC website and then generate page by going on the page with a WebClient.

    Like this I can have a preview of the website and I can enjoy the full power of Razor+MVC helpers.

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

Sidebar

Related Questions

For one project, we've to generate static .html pages, which are gonna to be
I am doing one project related to socket programming in which from server I
I recently added Autofac 2.6.2 to one of my ASP.NET MVC projet. I'm facing
I have one project inside that I have SqlServerFunctions in test.cs file. code: [Microsoft.SqlServer.Server.SqlFunction]
I want to make one project that parse wiki pages and get needed information
I have one project which has RIAService with entity framework that is referenced to
I am working on one project. In which i want to find out Is
I was working in one project file detached from the remote repository for a
I have installed zend server on my local system.I created one project folder using
I am making one project in which use of map-view is required. I have

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.