title: Getting null value of asp.net radiobuttonlist listitem
body: <p>I have this RadioButtonList</p>
  
  <pre><code>&lt;asp:RadioButtonList runat="server" ID="loanTypeCheck" CssClass="pull-right" RepeatDirection="Horizontal"&gt;
      &lt;asp:ListItem Value="Cash" Text="&amp;nbsp;&amp;nbsp;Cash&amp;nbsp;&amp;nbsp;"/&gt;
      &lt;asp:ListItem Value="Non-Cash" Text="&amp;nbsp;&amp;nbsp;Non-Cash&amp;nbsp;&amp;nbsp;" /&gt;
      &lt;asp:ListItem Value="Dharauti" Text="&amp;nbsp;&amp;nbsp;Dharauti&amp;nbsp;&amp;nbsp;" /&gt;                           
  &lt;/asp:RadioButtonList&gt;
  </code></pre>
  
  <p>And in Code Behind in my save button event</p>
  
  <pre><code>protected void SaveButton_Click(object sender, EventArgs e)
      {
          if (IsFormValidForSave())
          {
              var loanReceipt = GetLoanReceiptFromForm();
              var transactionsDetails = new List&lt;TransactionDetail&gt;();
              var loantypeCheck = loanTypeCheck.SelectedValue;
              //if (IsCashReceipt)
              if (loantypeCheck == "Cash")
              {
                  var transaction = new Transaction()
                  {
                      AuditUserId = UserId,
                      OfficeId = OfficeId,
                      VerificationStatusId = 0,
                      BookName = EverestEnums.TransactionBookName.LoanReceipt,
                      BookNameString = EverestEnums.TransactionBookName.LoanReceipt.ToString(),
                      TranDateString = DateConversion.GetCurrentServerDate().ToString(),
                      ValueDateString = ValueDateControl.ValueDateAd.ToString(),
                      TellerId = UserId,
                      TotalAmount = SubmittedAmountTextBox.Text.ToDecimal(),
                      ValueDate = ValueDateControl.ValueDateAd,
                      TranDate = DateConversion.GetCurrentServerDate(),
                  };
  </code></pre>
  
  <p>i am getting null value for the radio button.Am i missing something?</p>