I'm developing an auction site in ASP.NET MVC4 and EF, at this time already runs bids and has a timer.
The problem now is: how do I record the data when the time expires? I've thought about doing a trigger in DB, but I think it will not work.
I think I have to have a script that detects that the time has expired and writes the data to the DB, but how do I do this?
I have the timer in JavaScript:
<script type="text/javascript">
$('#countdown').countdown({ until: '@timeSpan', format: 'DHMS' });
</script>