the number is positive and this field should be sent as cents ( $22.00 should be sent as 2200 with no decimal).
How can I ?
in my first form page (where there is a textbox/ field )
I use
Expand|Select|Wrap|Line Numbers
- private void SetPageState()
- {
- int amountInt = int.Parse(mamountTextBox.Text);
- mFormPageState.AmountContribution = amountInt.ToString("0.00");
- SavePageState();
- }
- public struct FormPageState
- {
- //public int amountInt;
- public string AmountContribution;
- }
and the second screen, I can display as I want:
22.00 with the following code
Expand|Select|Wrap|Line Numbers
- mAmountLabel.Text = s.AmountContribution;
How can I ? could you help me please