Home All Groups Group Topic Archive Search About
Author
11 Nov 2005 8:09 PM
CGW
I've set up two listboxes with script to move items back and forth, along
with a button to submit. However, when I do sumit, the code behind sees zero
items in my second (starts empty) listbox. I figure I'm missing something
obvious. Can anybody tell me what it might be?

--
Thanks,

CGW

Author
11 Nov 2005 10:48 PM
intrader
On Fri, 11 Nov 2005 12:09:02 -0800, CGW wrote:

> I've set up two listboxes with script to move items back and forth, along
> with a button to submit. However, when I do sumit, the code behind sees zero
> items in my second (starts empty) listbox. I figure I'm missing something
> obvious. Can anybody tell me what it might be?

I don't know what you mean by 'moving back and forth'. I have seen code
that does this in http://www.aboutfortunate.com/default.aspx
Author
12 Nov 2005 1:47 AM
.net noobie
they should ban religous crap from the net.... period

Show quoteHide quote
"intrader" wrote:

> On Fri, 11 Nov 2005 12:09:02 -0800, CGW wrote:
>
> > I've set up two listboxes with script to move items back and forth, along
> > with a button to submit. However, when I do sumit, the code behind sees zero
> > items in my second (starts empty) listbox. I figure I'm missing something
> > obvious. Can anybody tell me what it might be?
>
> I don't know what you mean by 'moving back and forth'. I have seen code
> that does this in http://www.aboutfortunate.com/default.aspx
>
>
Author
11 Nov 2005 10:52 PM
Phillip Williams
When you manipulate a ListBox server control on the client, the ViewState of
its items is not saved.  You have to manage it yourself as in this example:
http://www.societopia.net/samples/listbox_clientside.aspx
Show quoteHide quote
"CGW" wrote:

> I've set up two listboxes with script to move items back and forth, along
> with a button to submit. However, when I do sumit, the code behind sees zero
> items in my second (starts empty) listbox. I figure I'm missing something
> obvious. Can anybody tell me what it might be?
>
> --
> Thanks,
>
> CGW
Author
11 Nov 2005 10:56 PM
CGW
I had about decided that must be what it was. Got it working now. Thank you!
--
Thanks,

CGW


Show quoteHide quote
"Phillip Williams" wrote:

> When you manipulate a ListBox server control on the client, the ViewState of
> its items is not saved.  You have to manage it yourself as in this example:
> http://www.societopia.net/samples/listbox_clientside.aspx
> --
> HTH,
> Phillip Williams
> http://www.societopia.net
> http://www.webswapp.com
>
>
> "CGW" wrote:
>
> > I've set up two listboxes with script to move items back and forth, along
> > with a button to submit. However, when I do sumit, the code behind sees zero
> > items in my second (starts empty) listbox. I figure I'm missing something
> > obvious. Can anybody tell me what it might be?
> >
> > --
> > Thanks,
> >
> > CGW