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>
 }
WorknHardrAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
By "params" are you in fact referring to HTML attributes?
0
WorknHardrAuthor Commented:
Yes, I know how to pass xtra params using ActionLinks. Just thought the RadioButton might have more than just 'Name' 'Value'...
0
käµfm³d 👽Commented:
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?
0
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

WorknHardrAuthor Commented:
Yup
0
käµfm³d 👽Commented:
OK, so an input only sends one thing back to the server. You have two choices that I can think of:  You can either come up with a convention whereby you effectively hard-code in multiple values for the radio button, each separated with a delimiter of your choosing, or you can add additional hidden inputs to your form. If you choose the former, then you would perform a split on the delimiter once it hits your server. If you choose the latter, then it's simply a matter looking at each of the hidden inputs when the request hits the server.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
WorknHardrAuthor Commented:
Ok, so it's just a glorified input, thanks...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.