Hi Nishant, Markus and Sakryukov,
It works, many thanks :laugh: :) :thumbsup:
here is a solution
<pre lang="cs">private FormConfirmationPageState mFormConfirmationPageState;
string cost;
int newVal;
private void LoadLabels()
{
object FormPageState = Session["FormPage"];
totoForm.FormPageState s = (totoForm.FormPageState)FormPageState;
mMontantLabel.Text = s.MontantContribution;
cost = s.MontantContribution;
double doubleVal = 0.0;
if (Double.TryParse(cost, out doubleVal))
{
newVal = (int)doubleVal * 100;
mPriceLabel.Text = newVal.ToString();
}
}
{
SW.WriteLine(newVal.ToString() + ";" + DateTime.Now.ToString("yyyy'/'MM'/'dd' - 'HH':'mm':'ss") + ";");
SW.Close();
}