Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <script>
  2. function agreeForm(f)
  3. {
  4. if (f.UserName = "")
  5. f.Save.disabled = "1"
  6. }
  7. </script>
  8. <form asp-controller="Calculator" asp-action="Edit" method="post">
  9. @Html.HiddenFor(m => m.ErrorCode)
  10. @Html.HiddenFor(m => m.Id)
  11.  
  12. <table>
  13. <tr>
  14. <th>Computer name:</th>
  15. <th>User Name:</th>
  16. <th>Expression:</th>
  17. <th>Result:</th>
  18. <th>Error:</th>
  19. <th>Date:</th>
  20. </tr>
  21. <tr>
  22. <td>@Html.EditorFor(m => m.ComputerName)</td>
  23. <td>@Html.EditorFor(m => m.UserName)</td>
  24. <td>@Html.EditorFor(m => m.Expression)</td>
  25. <td>@Html.EditorFor(m => m.Result)</td>
  26. <td>@Html.EditorFor(m => m.Description)</td>
  27. <td>@Html.EditorFor(m => m.Date)</td>
  28. </tr>
  29. </table>
  30.  
  31. <input type="submit" name="Save" class="btn btn-default" value="Save" disabled="0" onchange="agreeForm(this.form)"/>
  32. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement