Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double amt = 0;
- foreach (Control c in panel1.Controls)
- {
- amt = amt + long.Parse(((MediRow)c).Controls.Find("textBox1",true)[0].Text);
- }
- lblAmt.Text = amt.ToString();
- class MyCustomItem
- {
- public string ItemName
- {
- get { return TxtName.Text; }
- }
- public string ItemQuantity
- {
- get { return TxtQuantity.Text; }
- }
- // other logic here
- }
Add Comment
Please, Sign In to add comment