Click here to Skip to main content
15,794,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Can anyone clarify this?

i have two labels called tax and delivery_charges? by using these two i have to calculate netprice.....

netprice=tax*100*delivery_charges; i have only two label values then how can i calculate netprice which is also one label.....

what is the coding for this?
Updated 4-Dec-11 18:52pm
Monjurul Habib 4-Dec-11 23:56pm    
clarify your question..

Try this:

double netprice = 0;
double tax = double.Parse(Label1.Text);
double deliveryCharges = double.Parse(Label2.Text);

netprice = tax * 100 * delivery_charges;

Label3.Text = netprice.ToString();

Share this answer
If I understand your question correctly, you can display the resultant net price in one of the two labels.
This should not be a problem.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900