0

I have a web project with some forms in it. Every user on my web project should get an empty form ready to fill for everyday.

Is there anyway to Create a simple empty form with only id, name, activity fields, all automatically done by server everyday in MVC?

It can be timer that watches system time and creates a new form when a new day beguns or it can be another trick that i cant even think of.

Just show me ways to create forms every new day automatically.

4

2 回答 2

2

为什么不检查用户当天是否已经提交了表单,如果还没有,则显示该表单。您可以将日期保存在表单的隐藏字段中

于 2012-11-14T16:51:58.523 回答
1

在 ASP.NET 中实现计划任务很困难。如果您的唯一目标是在数据库表中创建新行,请使用SQL Server 作业(假设您有 SQL Server)。

如果它比这更复杂(例如发送电子邮件),您可以在链接问题的答案中提供一些选项。我通常会创建一个简单的控制台应用程序并使用 Windows 任务计划程序对其进行计划,但这取决于任务的范围。

于 2012-11-14T16:05:45.607 回答