Mithun Pradhan

Mithun Pradhan

  • 1.2k
  • 150
  • 21.6k

How to disable form tag

Oct 29 2021 10:24 AM

How to disable <form tag and everything inside in asp.net core using Razor page

<form method="post" asp-page-handler="SavePersonalDetails">    
    <ul>
        <li>
            <small>
                 <select asp-for="PersonalDetailsViewModel.Gender">
                     <option value="">Select Gender</option>
                     <option value="m">Male</option>
                     <option value="f">Female</option>
                     <option value="o">Others</option>
                 </select>

            </small>
            <span asp-validation-for="PersonalDetailsViewModel.Gender" class="validation-summary-errors text-danger"></span>
        </li>
        <li>
            <input type="date" value="dateofbirth" placeholder="DD/MM/YYYY" />
        </li>
        <li>
            <input type="date" value="FirstName" placeholder="First Name" />
        </li>
    </ul>
</form>

 


Answers (2)