title: formatiing decimal values need only 2 zeros after decimal
body: <p>i am trying to get percentage of values using textboxes. for me my code is working good. after getting percentage, i am storing this in a gridview and then i am using mouseclick event and on clicking gridview row i got that data back to textboxes.</p>
  
  <p>the problem stars now when i change a value in textbox. it show me the percentage in other textbox, but it add 2 more zeros i.e. 4 zeros after decimal. i want to avoid this i need only 2 zero.</p>
  
  <pre><code>string t4 = textBox4.Text;
  long it4 = Int64.Parse(t4);
  string t5 = textBox5.Text;
  var it5 = decimal.Parse(t5); 
  //decimal.Parse(t5);
  decimal a;
  a = it4 * it5;
  string t8 = textBox8.Text;
  var it8 = decimal.Parse(t8);
  decimal b;
  b = ((a * it8) / 100);
  textBox9.Text = b.ToString();
  </code></pre>