title: How to retrieve values from RadNumericTextBox
body: <p>I'm sorry for that question but somehow I have a blackout (I know its not a excuse ) but how can I retrieve the value from a <code>RadNumbericTextBox</code> using a button to sent the value  (I need a int) </p>
  
  <pre><code>&lt;div class="fromRowDiv"&gt;
     &lt;asp:Label ID="label1" CssClass="fromLabel" runat="server" Text="From Date" &gt;&lt;/asp:Label&gt;
     &lt;telerik:RadNumericTextBox ID="fromYear" runat="server" MinValue="2000" NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="" &gt;&lt;/telerik:RadNumericTextBox&gt;   
     &lt;asp:Label ID="Tolabel2" CssClass="fromLabel" runat="server" Text="To Date"&gt;&lt;/asp:Label&gt;
     &lt;telerik:RadNumericTextBox ID="toYear" runat="server" MinValue="2000" NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator=""&gt;&lt;/telerik:RadNumericTextBox&gt;    
  &lt;/div&gt;
  
  protected void CalcButton_Click(object sender, EventArgs e)
  {
              AnnualVacationManager mng = new AnnualVacationManager();
  
              mng.CalcForNextYear(fromYear,toYear);
  }
  </code></pre>
  
  <p>I need the value from RadNumbericTextBox (dynamic ) </p>
  
  <pre><code>  public AnnualVacationManager() {
      }
  
      public void CalcForNextYear(int fromYear, int toYear)
      {
          IEnumerable&lt;HtUser&gt; allUsers = HtUser.GetAll();
          List&lt;AnnualVacation&gt; newAnnualVacations = new List&lt;AnnualVacation&gt;();
          if (allUsers.Any()) {
              foreach (HtUser user in allUsers) {
                  //int fromYear = 2013;
                  //int toYear = 2014;
                  IEnumerable&lt;AnnualVacation&gt; usersCurrentAnnualVacation = new List&lt;AnnualVacation&gt;(user.AnnualVacations.Where(a =&gt;a.FromDate.Value.Year &gt;= fromYear &amp;&amp; a.FromDate.Value.Year &lt; toYear));
                  if (usersCurrentAnnualVacation.Any()) {
                      foreach (AnnualVacation existing in usersCurrentAnnualVacation) {
                          AnnualVacation newAnnualVacation = new AnnualVacation();
                          //Year stuff
                          DateTime newFromDate = existing.FromDate.Value;
                          newFromDate.AddYears(toYear - fromYear);
                          DateTime newToDate = existing.ToDate.Value;
                          newToDate.AddYears(toYear - fromYear);
                          //
                          newAnnualVacation.FromDate = newFromDate;
                          newAnnualVacation.ToDate = newToDate;
                          newAnnualVacation.WorkingTime = existing.WorkingTime;
                          newAnnualVacation.VacationDays = existing.VacationDays + (existing.VacationDays - user.GetBookedVacation(fromYear));
  
                          newAnnualVacations.Add(newAnnualVacation);
  
                          newAnnualVacation.HtUser = user;
                      }
                  }
              }
  
              HtEntityFactory.Context.SaveChanges();
          }
      }
  }
  </code></pre>
  
  <p>}</p>