How can I retrieve values ??from a textBox in another screen after the user set / send it
In the first screen, I have a TextBox, mNombre50TextBox, the user fills in the number of tickets they want in the textBox.the sum is displayed (by calculating with jQuery) in another textBox, mTotal50TextBox, and the total bill is in 3th (another) textBox, ,mMontantTextBox...
Here is my code in aspx (Front end)
[CODE]
somme partielle :
somme partielle :
,00$
Here is my code in codebehind C#
[CODE]private void SetPageState()
{
mFormulairePageState.MontantContribution = mMontantTextBox.Text;
//...
SavePageState();
}
public struct FormulairePageState
{
public int SelectedIndex;
//....
public string MontantContribution;
//....
} [/CODE]In the second screen, I display the sum in a "Label", mPriceLabel,!
Here is my code in codebehind C#
[CODE]private void LoadLabels()
{
object FormulairePageState = Session["FormulairePage"];
// change the amount by adding two 00
cost = s.MontantContribution;
double doubleVal = 0.0;
if (Double.TryParse(cost, out doubleVal))
{
newVal = (int)doubleVal * 100;
mPriceLabel.Text = newVal.ToString(); // 1000 is displayed, I need it for credit card
}
[/CODE]But in my label, mPriceLabel, there is nothing, it is empty. Comemnt I can display the sum in this screen ?
I did a test on my first screen: I removed "[ReadOnly="True"]" in my TextBox "mMontantTextBox"... Then I typed the numbers directly in the textBox, mMontantTextBox. In this case, these values ??are displayed in the label on the second screen!
Could you help me, please : Comemnt I can display the sum in 2sd screen ?
Suthish NairPosted Jun 29, 2011, 2:56 PM
aspkiddyPosted Jun 29, 2011, 12:24 PM
With Label, my javaScript does not work :
Here is my javaScript(Jquery) :
Suthish NairPosted Jun 29, 2011, 10:44 AM