Link to home
Start Free TrialLog in
Avatar of WorknHardr
WorknHardr

asked on

MVC Html.RadioButton Xtra Params in Form Collection?

Any way to include additional params to a a Html.Radiobutton in a Form Collection setup?

 @using (Html.BeginForm("Downloads", "Products", FormMethod.Post, new { id = "form1" }))
 {
        <label>@Html.RadioButton("xProduct", "Setup.zip", true, new { xName= "MyProductName" })My Product Name</label>
 }
Avatar of kaufmed
kaufmed
Flag of United States of America image

By "params" are you in fact referring to HTML attributes?
Avatar of WorknHardr
WorknHardr

ASKER

Yes, I know how to pass xtra params using ActionLinks. Just thought the RadioButton might have more than just 'Name' 'Value'...
Sorry, I'm still a bit confused? It now sounds like you want to pass multiple values on a single radio button to a form that will post back to your server. Is that correct?
Yup
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok, so it's just a glorified input, thanks...