Since the project requires a set of questionnaires, the client requires that the questionnaires must be pure html tags, so he faces a series of problems.
1 How to submit a pageAfter the user completes the questionnaire, how do he submit the results of the survey?
2How to pass parameters to pageIn the same questionnaire, after multiple people submit it, the manager checks the questionnaire and how to pass the parameters to ensure that the data you see is a questionnaire that specifies a certain person. In fact, this problem can be solved by using the simplest query string in asp.net, but in pure html, how to pass parameters?
3How to verify user identityOnly after the user logs in can the answer be answered. How to verify whether the user is logged in?
Is the entire system implemented using html? Can it be done? It seems not possible. After all, the submitted data needs to be saved to the database, which is probably not something that can be done by pure html.
So the basic idea is that all front-end use html static web pages, but the back-end must use csharp code to cooperate.
1 How to submit a pageIn fact, pure html can be submitted, mainly through tag form.
For example, after submitting to savedata.aspx, all the data entered by the user can be obtained, and saved to the database after processing. It can be submitted through ajax, or it can be submitted through input type as the submit tag.
Copy the code