title: How to handle UserControl events
body: <p>I have a usercontrol containing 3 empty minutes textboxes named txtMorningMinutes, txtAfternoonMinutes and txtCapacityMinutes. This UserControl is repeated 2 times as Saturday and Sunday in a Webform with Save button outside UserControl and inside Webform. </p>
  
  <p>Now there is a condition that user should enter a value less than that of txtCapacityMinutes for which the value is coming from database. Lets say the value of txtCapacityMinutes is 60.</p>
  
  <p>Now the user enters 10 in Saturday morning textbox called txtMorningMinutes and saves the data. It will be persisted to the database.</p>
  
  <p>Now the user enters 70 in Saturday morning textbox called txtMorningMinutes and tries to save data. Before saving the data in OnTextChanged of txtMorningMinutes, we need to check whether newly entered data is less than that of 60 which is txtCapacityMinutes. Because newly entered data 70 is greater than 60, we need to revert it back to 10.</p>
  
  <p>The TextChanged event is something like below</p>
  
  <pre><code>protected void txtMorningMinutes_TextChanged(object sender, EventArgs e)
  {
  
  }
  </code></pre>
  
  <p>Where should I preserve the initial value of 10 in UserControl. If it is stored in Page_Load event of UserControl, it will be repeated 2 times i.e., for Saturday UserControl and Sunday UserControl. So, I need know about where to store previous value of txtMorningMinutes.Text i.e., 10 and apply the condition whenever necessary in OnTextChanged event.</p>