简体   繁体   English

使用asp.net将用户数据保存到Excel文件

[英]Using asp.net to save users data to Excel file

Here is the scenario. 这是场景。 The users would get a web page where they enter their employee id, skill set, name and press 'submit'. 用户将获得一个网页,在其中输入他们的员工ID,技能,姓名并按“提交”。

On button click, I want the data to be copied to an Excel file on a server. 单击按钮后,我希望将数据复制到服务器上的Excel文件中。 Then next time a new user adds his data, it must be entered in next row and so on. 然后,下次新用户添加他的数据时,必须在下一行中输入该数据,依此类推。

Is this possible the way I think or there is a need for proper database? 这可能是我认为的方式还是需要适当的数据库?

This project is just on a team level of around 50 members. 该项目仅由大约50名成员组成。 Also if there is a user entry already present, HE must be prompted with update option of skill set instead of re-entering his info for second time. 另外,如果已经存在用户条目,则必须使用技能集的更新选项来提示他,而不是第二次重新输入他的信息。

This is not good idea to store data directly in Excel file. 直接将数据存储在Excel文件中不是一个好主意。

  1. Store data in a database (sql/mysql/xml ...) therefore easily you can manage data and use database servers features. 因此,将数据存储在数据库(sql / mysql / xml ...)中,因此您可以轻松地管理数据并使用数据库服务器功能。

  2. Export database to Excel file anytime need data as Excel file 随时将数据库导出为Excel文件需要将数据作为Excel文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM