title: not able to check the radio button selected value in controller
body: <p>I have got  4 radio buttons in view that i am binding these from model like this below</p>
  
  <pre><code>@model MVC.Models.DeleteModel
  @using (@Html.BeginForm("Submit", "Delete"))
  {
  
     &lt;div class=".editor-field"&gt;
         @Html.Label("Delete");
     &lt;/div&gt;
  
     &lt;div class =".editor-field"&gt;
     @Html.RadioButtonFor(m=&gt;m.IsDeleteByItemChecked,"By Item")
         @Html.Label("By Item")
    &lt;/div&gt;
      &lt;div class =".editor-field"&gt;
     @Html.RadioButtonFor(m=&gt;m.IsDeleteByVendorChecked,"By Vendor")
           @Html.Label("By Vendor")
  
          @Html.RadioButtonFor(m=&gt;m.IsCancelPageChecked,"Cancel Page")
           @Html.Label("Cancel Page")
    &lt;/div&gt;
    &lt;div class =".editor-field"&gt;
     @Html.RadioButtonFor(m=&gt;m.IsDeleteByMemberChecked,"By Member")
         @Html.Label("By Member")
    &lt;/div&gt;
  
      &lt;div class=".editor-field"&gt;
             &lt;input id="btnSubmitChanges" type="submit" value="Submit" /&gt;
          &lt;/div&gt;    
  }
  </code></pre>
  
  <p>and this is my model </p>
  
  <pre><code> public class DeleteModel
  {
  
      public bool IsDeleteByItemChecked { get; set; }
      public bool IsDeleteByVendorChecked { get; set; }
      public bool IsDeleteByMemberChecked { get; set; }
      public bool IsCancelPageChecked { get; set; }
  
      [Display(Name = "By Item")]
      public string ByItem { get; set; }
  
      [Display(Name = "By Vendor")]
      public string ByVendor { get; set; }
  
      [Display(Name = "By Member")]
      public string ByMember { get; set; }
  
      [Display(Name = "Cancel Page")]
      public string CancelPage { get; set; }
  
  }
  </code></pre>
  
  <p>and this is my controller</p>
  
  <pre><code>    [HttpPost]
      public ActionResult Submit(DeleteModel deleteModel)
      {
  
          //some coding stuff
  
           //here i am checking the radio button for selected one 
          if (deleteModel.IsDeleteByItemChecked)
          {
  
              DeleteItem deleteByItemInsert = new DeleteItem();
              deleteByItemInsert.DeleteField = "ITEM";
              deleteByItemInsert.DeleteIndicator = char.MinValue;
              deleteByItemInsert.DeleteValue = itemDTO.ItemID;
          }
          if (deleteModel.IsDeleteByMemberChecked)
          {
              DeleteItem deleteByMemberInsert = new DeleteItem();
              deleteByMemberInsert.DeleteField = "MEMBER";
              deleteByMemberInsert.DeleteIndicator = char.MinValue;
              deleteByMemberInsert.DeleteValue = "";
          }
  </code></pre>
  
  <p>Problem is if i select the <code>first radio button</code> and then click the <code>submit button</code> its comes to first if condition inside the controller but <code>first if condition</code> is giving false ....</p>
  
  <p>how can i check whether the radio button is selected or not in side controller </p>
  
  <p>would any one pls have a solution for this...</p>
  
  <p>another  problem is if i select the first radio button and then select the second radio button , I am not able to dis-select the first radio button how can i rectify this one ....</p>