Hi I have this code in my view..
<%=Html.DropDownList("ProductTemplate",new SelectList(Model.ProductTemplate,"Value","Text"))%>
I know if this dropdownlist box is in between BeginForm submit I can able to access the value in Controller using collection["ProductTemplate"];
if it is not in my beginForm still I can able to access this selected value in controller?
thanks
You could use AJAX to send the value of the currently selected element to a controller action. This is pretty trivial with jQuery:
And to access the selected value in your controller action simply use a parameter: