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

  • Home
  • SEARCH
  • 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 661587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:17:02+00:00 2026-05-13T23:17:02+00:00

Here is my scenario. User fills out this large page which is dynamically created

  • 0

Here is my scenario. User fills out this large page which is dynamically created based off DB values. Those values can change. When the user fills out the page and hits submit we want to save a copy of the page as html on the server, this way if the text or wording changes, when they go back to view their posted information, it is historically accurate.

So I basically need to do this

protected void buttonSave_Click(object sender, EventArgs e)
{
    //collect information into an object to save it in the db       
    bool result = BusinessLogic.Save(myBusinessObject);

    if (result)
        //!!! Here is where I need to save this page as an html file on my servers IFS!!!!
    else
        //whatever

    Response.Redirect("~/SomeOtherPage.aspx");
}

Any help is greatly apprciated. Also I CANNOT just request the data from the url because query string parameters are a big no no in this case. The key to pull the database info up (at its highest level) is all in session so I cant just request a url and save it.

Thanks!

  • 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-13T23:17:02+00:00Added an answer on May 13, 2026 at 11:17 pm

    You will have to deal with several problems here.

    First of all If I understood you correctly you want to intercept the HTML as it is generated. You can do it in a number of ways – i.e. you can write a Filter object – a System.IO.Stream implementation which in addition to passing through the original HTML data stream copies it on the side. Such object can be hooked up to the HttpResponse through its Filter property.

    Keep in mind that not all data sent to HttpResponse allow filtering.

    Then you will have to deal with another problem: By the time the ‘Save’ request hits your server your original page is gone. It was sent to the user as a result of the previous request/response round trip, so unless you have a way to re-create your html on the second roundtrip you will have to save it temporarily on the first roundtrip and ‘commit’ on the second one – when your buttonSave will be executed.

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

Sidebar

Related Questions

Here's the scenario: if this is a user's first time logging into my web
i've got a site, which has a login system. here's my scenario: user is
Here's the scenario: 'User A' has created unit tests through Visual Studio 2010. The
Tackling a strange scenario here. We use a proprietary workstation management application which uses
Here is the scenario. I have an application which writes a configuration file in
So, here is the scenario: I want to create a installer which would just
Here's the simplified scenario: I have a page with two sections: a search section,
Im sort of scratching my head on this one. Here's the scenario. Im using
Okay so here's the scenario: User is presented with form that contains file inputs.
Here's the scenario (which uses a BindingSource bound to a DataTable within a DataSet):

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.