i want to pass formtat  variable has culture info like "en-EN" to CultureInfo class how can i make it .
public string FormatPrice(decimal price)
{

string formatted = null;

    string formtat = Session["culinfo"].ToString();

            formatted = string.Format(CultureInfo.CreateSpecificCulture(formtat), "{0:C}", price);

return formatted;

}

Related posts

Recent Viewed