I am trying to understand how to use:
@Html.Action("GetOptions", )
What I would like to do is to pass a call to my controller and pass the parameters:
pk = "00" and rk = "00"
Can someone explain how I can do that with the Html.Action
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should look at the documentation for the Action method; it’s explained well. For your case, this should work:
The
controllerNameparameter will default to the controller from whichHtml.Actionis being invoked. So if you’re trying to invoke an action from another controller, you’ll have to specify the controller name like so: