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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:28:38+00:00 2026-05-24T21:28:38+00:00

I have a LOG table like this. Process_Type (Could be Update , View ),

  • 0

I have a LOG table like this.

Process_Type (Could be Update, View),
Username, Date

In my page I have only one Gridview.

I want to log user’s information (username, date, process_type) in LOG table.

1.View

Should I use Page_Load() function? (Because Gridview binding on the load of page) I think I should update my table like this;

UPDATE LOG
SET PROCESS_TYPE = 'VIEW', USERNAME =  Request.ServerVariables["AUTH_USER"],
DATE = DateTime.Now

2.UPDATE

Should I use Gridview1_OnRowUpdating() function ? I think I should update my table like this;

UPDATE LOG
SET PROCESS_TYPE = 'UPDATE', USERNAME =  Request.ServerVariables["AUTH_USER"],
DATE = DateTime.Now

Is this a good plan for logging my simple page?

Or, How can I do that more easily?

  • 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-24T21:28:39+00:00Added an answer on May 24, 2026 at 9:28 pm

    To log the View, you should use DataBound and for update use RowUpdated

    protected void GridView1_DataBound(object sender, EventArgs e)
    {
        // is Called when data is binded to gridview
    }
    protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
    {
        // is called when Row is Updated
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a log table. Rows are basically like this: id function n
I have a class hierarchy like this: @Entity @Table (name=call_distribution_policies) @Inheritance (strategy=InheritanceType.JOINED) public class
I have a table like this: log_id | user_id | login_date | logout_date I
I have a log table with a date field called logTime. I need to
i have textviews in table layout like this ---------------- |txt1|txt2|txt3| ---------------- |txt4|txt5|txt6| ---------------- |txt7|txt8|txt9|
I have a log file which has a format of this kind: DATE-TIME ###
I have a table that looks like this: Timestamp Event User ================ ===== =====
I have this log table in MySQL with columns ActionName and SourceName. The same
I have a table that contains log entries for a program I'm writing. I'm
I have an Oracle table which contains event log messages for an application. We

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.