I have two different text boxes below. I am under the impression that they are both HTML text boxes. I am using Microsoft.net,
and MVC with C#.
I want to place these text boxes in a partial view. I have noticed that the <input type ...> text box when used as a partial view will be displayed in every .cshmtl page in the project, and the other text box type @Html will display in only the .cshtml page that uses the partial view. Which text box type is better, and why does one show on all of the .cshtml pages, and the other only on one?
<div style="padding-left:19px; width:806px;">
@Html.TextBox("PartialTextBox", "", new { style ="width: 100px;", id="partialBox" })
<input type="text" name="customer" id="newCust" value="">
</div>