There is a task to add / remove an element to the page on click, for example textarea , and it is necessary that the added element be saved on the page forever + have an individual id . Access to the added item will have different users on different machines. Knowledge of js minimal, I tried to add elements to the page, but after reloading the page they disappear. Actually, how to solve this problem, store the element code ( html ) in the database, store cookies in the database? Maybe there is some technology for this task, what to read? Server part of asp.net core , DB - MS SQL .
- Think not about HTML elements, but about object properties. Create a model, and in it a collection of added items, i.e. one-to-many relationship, one object, many text fields. Well, then add them dynamically on the client side, and in the controller on the server side save / delete / update. - XelaNimed
|