Запрос.Форма не работает с вводом, созданным с помощью javascrip (отлично работает со всеми остальными вводами)

#javascript #razor #request.form

#язык JavaScript #бритва #запрос.форма

Вопрос:

я работаю над приложением asp-net 6 razor и создаю на странице таблицу с помощью javascript, это мой код:

 function Importariga(){  var tableart = document.getElementById('CorpoArticoli');  let progr = document.getElementById('proArt').value;   var myTd,myInput;  var myTr = document.createElement('tr');  myTr.setAttribute('class','unit-table');   myTd = document.createElement('td');  myInput = document.createElement('input');  myInput.setAttribute('id','Cek'   progr);  myInput.setAttribute('name','Cecking'   progr);  myInput.setAttribute('class', 'form-check-input me-1');  myInput.setAttribute('style', 'width:25px; height:25px');  myInput.setAttribute('type', 'checkbox');  myTd.appendChild(myInput);  myTr.appendChild(myTd);   myTd = document.createElement('td');  myInput = document.createElement('input');  myInput.setAttribute('id','Cod'   progr);  myInput.setAttribute('name','Codice'   progr);  myInput.setAttribute('value', document.getElementById('idArt').value);  myInput.setAttribute('class', 'form-control border-0');  myInput.setAttribute('style', 'background-color:transparent; width:60px');  myInput.setAttribute('disabled', 'disabled');  myTd.appendChild(myInput);  myTr.appendChild(myTd);   myTd = document.createElement('td');  myInput = document.createElement('input');  myInput.setAttribute('id','Des'   progr);  myInput.setAttribute('name','Descrizione'   progr);  myInput.setAttribute('value', document.getElementById('desArt').value);  myInput.setAttribute('class', 'form-control border-0');  myInput.setAttribute('style', 'background-color:transparent');  myInput.setAttribute('disabled', 'disabled');  myTd.appendChild(myInput);  myTr.appendChild(myTd);   myTd = document.createElement('td');  myInput = document.createElement('input');  myInput.setAttribute('id','Agg'   progr);  myInput.setAttribute('name','Aggiuntiva'   progr);  myInput.setAttribute('value', document.getElementById('aggArt').value);  myInput.setAttribute('class', 'form-control border-0');  myInput.setAttribute('style', 'background-color:transparent');  myInput.setAttribute('disabled', 'disabled');  myTd.appendChild(myInput);  myTr.appendChild(myTd);   myTd = document.createElement('td');  myInput = document.createElement('input');  myInput.setAttribute('id','Um'   progr);  myInput.setAttribute('name','Um'   progr);  myInput.setAttribute('value', document.getElementById('umArt').value);  myInput.setAttribute('class', 'form-control border-0');  myInput.setAttribute('style', 'background-color:transparent; width:40px');  myInput.setAttribute('disabled', 'disabled');  myTd.appendChild(myInput);  myTr.appendChild(myTd);   myTd = document.createElement('td');  myInput = document.createElement('input');  myInput.setAttribute('id','Qta'   progr);  myInput.setAttribute('name','Qta'   progr);  myInput.setAttribute('value', document.getElementById('qtaArt').value);  myInput.setAttribute('class', 'form-control border-0');  myInput.setAttribute('style', 'background-color:transparent; width:50px');  myInput.setAttribute('disabled', 'disabled');  myTd.appendChild(myInput);  myTr.appendChild(myTd);   tableart.appendChild(myTr);  progr  ;  document.getElementById('proArt').value = progr;  

Эта таблица заполняется динамически из модального iframe. Все в порядке, за исключением случаев, когда я использую команду Request.Form["Nameoftheinput"] с входными данными таблицы, созданной в javascript, для которой она сообщает нулевые значения. Команда отлично работает для всех остальных входных данных страницы