how to pass multiple parameters from view to the controller in the url.This is my url,and options.parentId is one parameter.I need to pass multiple values ,how can i pass multiple values from view to controller in the url.
(“/ProjectRoles/project_module_functions_leftdisplay”, options.parentid)
how to pass multiple parameters from view to the controller in the url.This is
Share
You could use the Url.Action helper:
or if you are calling the controller within an action link:
or if you are using an HTML
<form>:or if I misunderstood your question and
optionsis a javascript variable::There might as well be other, better approaches depending on your exact scenario and what you are trying to achieve.