I am developing MVC 4 application in which I need to pass the updated value from the view to controller.

          @foreach (var item in Model)
                @Html.TextBox("QuantityBox", item.Quantity)


           //Update Button

            @using (Html.BeginForm("UpdateCart", "Cart", FormMethod.Post))
                <input type="submit" id="submit" name="Update" value="Update" />

The values could be entered different for different rows. I need to pass these values from quantity textbox to controller.

Related posts

Recent Viewed