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

The Archive Base Latest Questions

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

A few clients have asked to make some static websites because their hosting doesn’t

  • 0

A few clients have asked to make some static websites because their hosting doesn’t support a server-side language. Now I was wondering are there any tools/techniques for generating a static website from an Asp.net site?

The reason I ask is because without masterpage or any form of templating it gets really cumbersome.

I remember 5 years ago Dreamweaver had a templating system based on html comments but I didn’t like it much so I would like to avoid that.

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

    Check out the RenderControl method. It will essentially let you dump the contents of any ASP.NET page as HTML. So you can build your site dynamically, then dump it all out to HTML and upload it to your antique server.

    Here’s a bit of helper code that I swiped from one of my projects to get the contents of any page into a string:

    public class RenderHelper
    {
        public static string RenderControl(Control control)
        {
            StringBuilder result = new StringBuilder(1024);
            control.RenderControl(new HtmlTextWriter(new StringWriter(result)));
            return result.ToString();
        }
        public static string RenderControl(TemplateControl control)
        {
            StringBuilder result = new StringBuilder(1024);
            control.RenderControl(new HtmlTextWriter(new StringWriter(result)));
            return result.ToString();
        }
        public static string RenderPage(string pageLocation)
        {
            HttpContext context = HttpContext.Current;
            StringBuilder result = new StringBuilder(1024);
            context.Server.Execute(pageLocation, new HtmlTextWriter(new StringWriter(result)));
            return result.ToString();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have few basic questions on session management in GWTP. Client : GWTP, Server
I already asked a few beginner questions, found some demos, altered them and realize
I know this question has been asked quite a few times, however, I have
I am new to web serivce. I have written a few clients using AXIS2
I have developed a few app store applications but recently have been asked by
a client asked me today about having users be able to have their own
I have asked a few questions related to this, but from different angles. I
I asked a question a few days ago ( Access to SQL Server 2005
A few people have touched on it, but no-one appears to have outright asked
I have lot of stored procedures used across different clients, for few clients there

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.