How to save the submitter name/editor name/creation time?

47 views Asked by At

I'm building a gridview and a form in ASP.NET Visual C#.

I'd like my DB to save, for each entry/edit, the name of the submitter and time. I'm using SQL Server DB. How can it be done?.

1

There are 1 answers

0
Emily On

Pseudo code could look like:

foreach(var e in edits)
{
    // Depends on data structure.
    save(e.Name, e.Time);
    // or something like
    e.Save();
}

Edits could be a class that encapsulates some values. Use properties or methods to get the fields.