Andrea Grub
|
| Posted: 12/05/2002, 11:31 PM |
|
Hi
i just startet with CCS and for me it's a good way to learning asp coding.
Now i need some help. I have a form with three fields. I would like to do
the following: multiply field1 with field2 and show the result in field3.
What is the best way to this (add code on the onchange or....)? Can someone
show me an example?
Thanks for helping a newbie to learmimg more
Andrea
|
|
|
 |
Vic
|
| Posted: 12/06/2002, 4:01 AM |
|
Hi Andrea,
One of variants
1. The form contains 3 TextBoxs (Toolbox-> Forms-> Add record form)
TextBox names TextBox1, TextBox2, TextBox3
Name of the form-NewRecord1
2. Add action "Retrive Value for Control " to event " Before Show " for
TextBox3
Set property it action:
Source Type=Expession
Source Name=NewRecord1. TextBox1. Value*NewRecord1. TextBox2. Value
3. For form "NewRecord1" set property "Preserve parameters"=All
It is all
Vic
"Andrea Grub" <a.grub@qwirt.ch> wrote in message
news:aspjpe$asu$1@news.codecharge.com...
> Hi
> i just startet with CCS and for me it's a good way to learning asp coding.
> Now i need some help. I have a form with three fields. I would like to do
> the following: multiply field1 with field2 and show the result in field3.
> What is the best way to this (add code on the onchange or....)? Can
someone
> show me an example?
> Thanks for helping a newbie to learmimg more
>
> Andrea
>
>
|
|
|
 |
Andrea Grub
|
| Posted: 12/07/2002, 12:04 AM |
|
Vic
thaks for your showing me this example.
Have a nice Weekend
Andrea
"Vic" <victor.tciba@yessoftware.com> schrieb im Newsbeitrag
news:asq3hs$8em$1@news.codecharge.com...
> Hi Andrea,
>
> One of variants
> 1. The form contains 3 TextBoxs (Toolbox-> Forms-> Add record form)
> TextBox names TextBox1, TextBox2, TextBox3
> Name of the form-NewRecord1
> 2. Add action "Retrive Value for Control " to event " Before Show " for
> TextBox3
> Set property it action:
> Source Type=Expession
> Source Name=NewRecord1. TextBox1. Value*NewRecord1. TextBox2. Value
> 3. For form "NewRecord1" set property "Preserve parameters"=All
> It is all
>
> Vic
>
> "Andrea Grub" <a.grub@qwirt.ch> wrote in message
>news:aspjpe$asu$1@news.codecharge.com...
> > Hi
> > i just startet with CCS and for me it's a good way to learning asp
coding.
> > Now i need some help. I have a form with three fields. I would like to
do
> > the following: multiply field1 with field2 and show the result in
field3.
> > What is the best way to this (add code on the onchange or....)? Can
> someone
> > show me an example?
> > Thanks for helping a newbie to learmimg more
> >
> > Andrea
> >
> >
>
>
|
|
|
 |
|