This question is locked. New answers and comments are not allowed.
I have the following html:
As you can see, I am passing the item id of the item I am adding to the cart but I also need to pass the quantity (value of the numeric textbox). How can this be accomplished?
Thanks!
<
tr
valign
=
"middle"
>
<
td
>
@(Html.Telerik().NumericTextBox()
.Name("Quantity")
.MinValue(1)
.Value(1)
.InputHtmlAttributes( new
{
style = "width: 50px"
} )
)
</
td
>
<
td
>
<
a
href
=
'@Url.Action( "AddToCart", "ShoppingCart", new {itemId = @Model.InventoryItemId} )'
>
<
img
id
=
"ImageAddToCart"
src
=
"/Content/Images/AddToCart.jpg"
style
=
"border-style:none"
alt
=
"Add To Cart"
/>
</
a
>
</
td
>
</
tr
>
As you can see, I am passing the item id of the item I am adding to the cart but I also need to pass the quantity (value of the numeric textbox). How can this be accomplished?
Thanks!