title: Trying to separate whole number and decimal asp.net c#
body: <p>I'm looking for guidance can someone help me out?</p>
  
  <p>I need to separate the value in duration into a whole number and the decimal.  </p>
  
  <p>EDIT: I have a textbox in one page.  If someone enters 1.5 and it gets stored in duration, I would like to retrieve that in another page and I would like to store the whole number in a textbox and the decimal number will select a value from a dropdownlist based on the response.</p>
  
  <p>Sorry I added duration twice by accident.</p>
  
  <pre><code>context.Response.Write(dr["Title"].ToString()
      + '|' + dr["CourseId"].ToString() + '|' + dr["duration"].ToString()
   + '|' + dr["Code"].ToString() + '|'
      + dr["Category"].ToString() + School.NewLine);
  </code></pre>