User-1651604128 posted
I have a @Html.Dropdownlist as this:
@Html.DropDownList("ProdidInvID", new SelectList(ViewBag.ProdData, "Prod_Inv_ID", "Product_Desc", ViewBag.SelectedProd_ID))
The ViewBag.ProdData contains : ProductID, InvoiceID and Product_Desc,
When the view loaded, it shows ProductDesc, when user change the data from dropdownlist, I want to pass the ProductID and InvoiceID to controller to doing some queries. and then update the other webgrid, after updating, the ProductID and InvoiceID of selected
should rebind the dropdownlist to show the selected value.
Now, the question is how to pass ProductID and InvoiceID combination to the controller? thanks in advance.