nedash says:
string
pTotal = (ddlQuantity.NamingContainer.FindControl(
"LblPriceT"
)
as
Label).Text.Trim();
decimal
value = Convert.ToDecimal(
"LblPriceT"
);
string
priceTotal = value.ToString(
"N0"
, CultureInfo.InvariantCulture);
priceTotal.Text = (Convert.ToDouble(quantity.Text) * Convert.ToDouble(price.Text.Trim())).ToString(
"N"
);
Change your code with below.
string pTotal = (ddlQuantity.NamingContainer.FindControl("LblPriceT") as Label).Text.Trim();
decimal value = Convert.ToDecimal(pTotal);
string priTotal = value.ToString("N0", CultureInfo.InvariantCulture);
(ddlQuantity.NamingContainer.FindControl("priceTotal") as Label).Text = (Convert.ToDouble(quantity.Text) * Convert.ToDouble(price.Text.Trim())).ToString("N");