Hi @Kris Ellison,
The value of the label can be obtained directly for calculation.
Place the following code at the end of Page_Load in Print.aspx.cs.
int total1 = Convert.ToInt32(lblQuantity1.Text.ToString()) + Convert.ToInt32(lblPrice1.Text.ToString());
Total1.Text = total1.ToString();
int total2 = Convert.ToInt32(lblQuantity2.Text.ToString()) + Convert.ToInt32(lblPrice2.Text.ToString());
Total2.Text = total2.ToString();
int total3 = Convert.ToInt32(lblQuantity3.Text.ToString()) + Convert.ToInt32(lblPrice3.Text.ToString());
Total3.Text = total3.ToString();
Total.Text = (total1 + total2 + total3).ToString();
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.