SHARE
TWEET

Untitled

a guest Jan 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. double amt = 0;
  2.             foreach (Control c in panel1.Controls)
  3.             {
  4.                 amt = amt + long.Parse(((MediRow)c).Controls.Find("textBox1",true)[0].Text);
  5.             }
  6.             lblAmt.Text = amt.ToString();
  7.    
  8. class MyCustomItem
  9. {
  10.  
  11.   public string ItemName
  12.   {
  13.     get { return TxtName.Text; }
  14.   }
  15.  
  16.   public string ItemQuantity
  17.   {
  18.     get { return TxtQuantity.Text; }
  19.   }
  20.  
  21.  
  22.   // other logic here
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top