I need to show textbox in MVC view and then after pushing submit I need to show the table with the values. problem I have now is it shows textboxes along with all labels for the table when I run the page. How I can hide that table and show it after user
click on submit.
this is my view Code:
@model CustomerPortal_MVC.Models.CustomerModel
@{
ViewBag.Title = "Details";
}
<h2>Details</h2>
@using (Html.BeginForm())
{
@Html.Label("First Name")<br />
@Html.TextBox("First_Name")<br />
@Html.Label("Last Name")<br />
@Html.TextBox("Last_Name")<br />
<button type="submit">Submit</button>
}
// I need to hide this table and show after pushing Submit
<table>
<tr>
<td>First Name: </td>
< ...
Go to the complete details ...