Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 69571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:35:41+00:00 2026-05-10T19:35:41+00:00

After I upgraded to the beta, I’m having trouble with Html.RadioButtonList. Can someone show

  • 0

After I upgraded to the beta, I’m having trouble with Html.RadioButtonList. Can someone show me what I’m doing wrong?

The code:

<% Html.RadioButtonList(     'voter' + voter.Id,     new SelectList(new[]{'yes','no','abstain'}, 'yes')).Each(x => Response.Write(x)); %> 

And the exception I get:

[ArgumentNullException: Value cannot be null. Parameter name: value]    System.Web.Mvc.Html.InputExtensions.RadioButton(HtmlHelper htmlHelper, String name, Object value, Boolean isChecked, IDictionary`2 htmlAttributes) +214    Microsoft.Web.Mvc.<>c__DisplayClass1.<RadioButtonListInternal>b__0(ListItem item) in c:\dd\Cicero\src\Mvc\main\src\MvcFutures\Mvc\RadioExtensions.cs:86    System.Linq.WhereSelectListIterator`2.MoveNext() +107    System.Linq.Buffer`1..ctor(IEnumerable`1 source) +259    System.Linq.Enumerable.ToArray(IEnumerable`1 source) +81    Microsoft.Web.Mvc.RadioListExtensions.RadioButtonListInternal(HtmlHelper htmlHelper, String name, SelectList selectList, Boolean usedViewData, IDictionary`2 htmlAttributes) in c:\dd\Cicero\src\Mvc\main\src\MvcFutures\Mvc\RadioExtensions.cs:88    Microsoft.Web.Mvc.RadioListExtensions.RadioButtonList(HtmlHelper htmlHelper, String name, SelectList selectList) in c:\dd\Cicero\src\Mvc\main\src\MvcFutures\Mvc\RadioExtensions.cs:29 

Many thanks in advance!
Rob

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T19:35:42+00:00Added an answer on May 10, 2026 at 7:35 pm

    It looks like you may have found a bug in the MVC framework. The other overloads of RadioButtonList seem to work just fine, but that particular overload barfs.

    From looking at Reflector (and using the stack trace) I looks like things go awry at this line:

        return selectList.GetListItems().Select<ListItem, string>(delegate (ListItem item) {     return htmlHelper.RadioButton(name, item.Value, item.Selected, htmlAttributes); }).ToArray<string>(); 

    In the Microsoft.Web.Mvc.RadioListExtensions.RadioButtonListInternal method. I assume this code worked fine in Preview 5?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have code that is triggered on launch only after the app is upgraded
I am having problems with phpsh after I upgraded to mountain lion I installed
I'm revisiting an older project after having upgraded TypeScript from 0.8.0.0 to 0.8.1.1. Visual
I have trouble running some test cases, which broke after I upgraded the api
Where can I find filemerge after Xcode is upgraded to 4.3?
After having upgraded to XCode 4 im getting some linker warnings that Im a
Have a little design issue after having upgraded to iOS 5 and Xcode 4.2
This is an issue I'm having with the fact that after I upgraded to
After I upgraded to the new FactoryGirl, I updated the syntax of the factories
This is a warning that began to appear after I upgraded my app from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.