<script>
jQuery(document).ready( init )
function init()
{
var dbnetedit1 = new DbNetEdit("dbnetedit1");
with (dbnetedit1)
{
connectionString = "AdventureWorks"
fromPart = "customer"
setColumnExpressions("CustomerID", "Title", "FirstName", "MiddleName", "LastName", "Suffix", "CompanyName", "EmailAddress", "Phone", "ModifiedDate");
setColumnProperty("ModifiedDate","readOnly",true);
bind("onRecordValidate", setModifiedDate)
initialize()
}
}
///////////////////////////////////////////////////////////////
function setModifiedDate(sender, args)
///////////////////////////////////////////////////////////////
{
// Any values assigned to the parameters object will applied to the column corresponding to the property name
args.parameters["ModifiedDate"] = new Date();
}
</script>