Click here to Skip to main content
15,911,711 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi

I am shailendra singh. Can amy one help me.

I want to add more than one different decimal value and value in asp.net label.How can add and generate result.

My value following given .
C#
lblEtotal.Text = (Convert.ToDecimal(lblEW.Text) + (lblEfa1.Text) + (lblEfa11.Text));



Thanks for Advance.
Posted
Updated 22-Dec-11 22:48pm
v2

try this
lblEtotal.Text = (Convert.ToDecimal(lblEW.Text) + Convert.ToDecimal(lblEfa1.Text) + Convert.ToDecimal(lblEfa11.Text));
 
Share this answer
 
C#
lblError.Text = Convert.ToString(Convert.ToDecimal(lblEW.Text) + Convert.ToDecimal(lblEfa1.Text) + Convert.ToDecimal(lblEfa11.Text));
 
Share this answer
 
lblEtotal.Text = (  CDec (lblEW.Text) +   CDec (lblEfa1.Text) +   CDec (lblEfa11.Text));
 
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