如何在asp.net中计算净价? [英] How to calculate net price in asp.net?

查看:130
本文介绍了如何在asp.net中计算净价?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



任何人都可以澄清吗?

我有两个标签,分别称为税和Delivery_charges?通过使用这两个,我必须计算出净价.....

netprice=tax*100*delivery_charges;我只有两个标签值,那么我该如何计算也是一个标签的netprice .....

Hi,

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?

推荐答案

试试看:

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();



问候,
爱德华(Eduard)



Regards,
Eduard


如果我正确理解了您的问题,则可以在两个标签之一中显示最终的净价.
这应该没问题.
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.


这篇关于如何在asp.net中计算净价?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆