Home All Groups Group Topic Archive Search About
Author
21 Jun 2005 12:36 PM
Wen Ou
hi

i got a problem about dropdownlist. i set autopostback true. when its index
changed, i would like to get its value before changed and compare with the
value after changed. i don't have any idear about that.

anyone can help me

thank you

wen ou

Author
29 Jun 2005 7:46 PM
Michael Baltic
Create a new control and inherit from the dropdownlist.  Add a property for
the previous value.

When the dropdownlist is filled with items, set the previos value to null. 
All other times, just put the current value into the previous value AFTER you
read the contents of the previous value.

Make sure the value is persisted in state.
--
Staff Consultant II - Enterprise Web Services - Cardinal Solutions Group

Future Business Model - National City Mortgage


Show quoteHide quote
"Wen Ou" wrote:

> hi
>
> i got a problem about dropdownlist. i set autopostback true. when its index
> changed, i would like to get its value before changed and compare with the
> value after changed. i don't have any idear about that.
>
> anyone can help me
>
> thank you
>
> wen ou
>
>
Author
29 Jun 2005 9:15 PM
Wen Ou
Hi Michael
thank you for your respondance
i still don't understand your answer. could you give me more details please

thank you
wen ou

Show quoteHide quote
"Michael Baltic" wrote:

> Create a new control and inherit from the dropdownlist.  Add a property for
> the previous value.
>
> When the dropdownlist is filled with items, set the previos value to null. 
> All other times, just put the current value into the previous value AFTER you
> read the contents of the previous value.
>
> Make sure the value is persisted in state.
> --
> Staff Consultant II - Enterprise Web Services - Cardinal Solutions Group
>
> Future Business Model - National City Mortgage
>
>
> "Wen Ou" wrote:
>
> > hi
> >
> > i got a problem about dropdownlist. i set autopostback true. when its index
> > changed, i would like to get its value before changed and compare with the
> > value after changed. i don't have any idear about that.
> >
> > anyone can help me
> >
> > thank you
> >
> > wen ou
> >
> >
Author
30 Jun 2005 1:05 PM
Michael Baltic
Do you know how to create an inherited control?  If not, I can give you some
sample code.

My email user id is Michael.Baltic the domain is NCMC.com (That should stop
an automated spammer?)

If you don't want to create an inherited control, you can use session
variables to save the value.  Each time you read the current value, save it
to the previous value (after you read the contents of the previous value)
--
Staff Consultant II - Enterprise Web Services - Cardinal Solutions Group

Future Business Model - National City Mortgage


Show quoteHide quote
"Wen Ou" wrote:

> Hi Michael
> thank you for your respondance
> i still don't understand your answer. could you give me more details please
>
> thank you
> wen ou
>
> "Michael Baltic" wrote:
>
> > Create a new control and inherit from the dropdownlist.  Add a property for
> > the previous value.
> >
> > When the dropdownlist is filled with items, set the previos value to null. 
> > All other times, just put the current value into the previous value AFTER you
> > read the contents of the previous value.
> >
> > Make sure the value is persisted in state.
> > --
> > Staff Consultant II - Enterprise Web Services - Cardinal Solutions Group
> >
> > Future Business Model - National City Mortgage
> >
> >
> > "Wen Ou" wrote:
> >
> > > hi
> > >
> > > i got a problem about dropdownlist. i set autopostback true. when its index
> > > changed, i would like to get its value before changed and compare with the
> > > value after changed. i don't have any idear about that.
> > >
> > > anyone can help me
> > >
> > > thank you
> > >
> > > wen ou
> > >
> > >
Author
30 Jun 2005 9:04 PM
Wen Ou
i don't like to use session variable. could you give some sample code of
inherited control please

thank you

wen ou

Show quoteHide quote
"Michael Baltic" wrote:

> Do you know how to create an inherited control?  If not, I can give you some
> sample code.
>
> My email user id is Michael.Baltic the domain is NCMC.com (That should stop
> an automated spammer?)
>
> If you don't want to create an inherited control, you can use session
> variables to save the value.  Each time you read the current value, save it
> to the previous value (after you read the contents of the previous value)
> --
> Staff Consultant II - Enterprise Web Services - Cardinal Solutions Group
>
> Future Business Model - National City Mortgage
>
>
> "Wen Ou" wrote:
>
> > Hi Michael
> > thank you for your respondance
> > i still don't understand your answer. could you give me more details please
> >
> > thank you
> > wen ou
> >
> > "Michael Baltic" wrote:
> >
> > > Create a new control and inherit from the dropdownlist.  Add a property for
> > > the previous value.
> > >
> > > When the dropdownlist is filled with items, set the previos value to null. 
> > > All other times, just put the current value into the previous value AFTER you
> > > read the contents of the previous value.
> > >
> > > Make sure the value is persisted in state.
> > > --
> > > Staff Consultant II - Enterprise Web Services - Cardinal Solutions Group
> > >
> > > Future Business Model - National City Mortgage
> > >
> > >
> > > "Wen Ou" wrote:
> > >
> > > > hi
> > > >
> > > > i got a problem about dropdownlist. i set autopostback true. when its index
> > > > changed, i would like to get its value before changed and compare with the
> > > > value after changed. i don't have any idear about that.
> > > >
> > > > anyone can help me
> > > >
> > > > thank you
> > > >
> > > > wen ou
> > > >
> > > >