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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:56:40+00:00 2026-05-14T18:56:40+00:00

Back in the ASP classic days when i needed to write out the name/value

  • 0

Back in the ASP classic days when i needed to write out the name/value pairs of forms submitted by POST i thru this loop into the page:

on error resume next
for each x in Request.Form
 Response.AppendToLog x & "=" &  Request(x)
next

It threw all the form fields and values into the log just as GETs are. Does IIS7 .net give me any better method? (this is for the dev/testing portion of the project i don’t have any concern about the space or cycles used to accomplish this).

thx

  • 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-14T18:56:40+00:00Added an answer on May 14, 2026 at 6:56 pm

    You can create an http module to log all posts. It allows you to log outside of the pages, a single point of logging instead of having to add the logic to all pages where you want to log activity.

    Here you have some of the code. You would have to avoid logging viewstate since is tons of useless information. So you have to add some logic to achieve this.

    public class ActivityLogModule: IHttpModule
    {
        public void Init(HttpApplication application)
        {
            application.EndRequest += (new EventHandler(this.Application_EndRequest));
        }
    
        private void Application_EndRequest(Object source, EventArgs e)
        {
            HttpApplication application = (HttpApplication)source;
            HttpContext context = application.Context;
    
            if (RecordActivity(context))
            {
                ActivityLogger.Instance.Log(application.Context.User.Identity.Name, 
                     application.Context.Request.Url.AbsoluteUri, 
                     application.Context.Request.Form.ToString());
            }
        }
    
        public void Dispose(){}
    
        protected bool RecordActivity(HttpContext context)
        {
            if (!context.Request.RequestType.Equals("POST"))
            {
                return false;
            }
    
            return true;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Easy question. I used to develop websites back in the days of classic ASP,
Back in the scripted ASP and ColdFusion days, I used to work on projects
I have a few ASP.Net database front-end websites where MS Access is the back-end.
I'm working on creating a call back function for an ASP.NET cache item removal
I have a button on an ASP.Net page that will call Response.Redirect back to
Back in the old days, Help was not trivial but possible: generate some funky
Back in the days of Unix, you couldn't even close a software without reading
Back in the 90s when I first started out with MFC I used to
I've just accepted a classic ASP project, because I need the work and the
So part of the application I'm working on is still written in classic ASP.

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.