Marius Vasile

Marius Vasile

  • 552
  • 1.9k
  • 145.8k

asp.net core razor pages. add an input value to two different tables

Dec 13 2020 7:09 AM
I have a form with one input but I want to save the data to two different tables
 
  1. <input asp-for="PTWHandover.StartDateNew" class="form-control" style="background-color:aqua" />  
  2.                     <input hidden asp-for="PTWContent.StartDate" />  
What should add to hidden input to have it performing the add? 

Answers (8)