Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Listbox not submitting correctly?

Reply
Thread Tools

Listbox not submitting correctly?

 
 
Damien Foggon
Guest
Posts: n/a
 
      10-23-2003
I've got two listboxes on an ASPX page and use JS on the client side to move
entries between the two lists - allowing the user to select which options
they want and don't want.

The problem occurs when I submit the page as the new contents of the
listboxes (as set by the user) aren't accepted by the save click handler and
the contents of the list boxes default to what they were when the page was
populated.

I did this with ASP fine (even using the same JS code at client) but is what
I'm trying to do possible in ASP.NET?

Ta.

Damien


 
Reply With Quote
 
 
 
 
Nicole Calinoiu
Guest
Posts: n/a
 
      10-23-2003
Damien,

It is, but you'll need to use the same sorts of techniques that you used
with ASP. For example, copy the "selected" list identifiers to a hidden
control via client-side javascript then read the value on the server side
from the Request.Form variables collection.

HTH,
Nicole


"Damien Foggon" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've got two listboxes on an ASPX page and use JS on the client side to

move
> entries between the two lists - allowing the user to select which options
> they want and don't want.
>
> The problem occurs when I submit the page as the new contents of the
> listboxes (as set by the user) aren't accepted by the save click handler

and
> the contents of the list boxes default to what they were when the page was
> populated.
>
> I did this with ASP fine (even using the same JS code at client) but is

what
> I'm trying to do possible in ASP.NET?
>
> Ta.
>
> Damien
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
difficulties in submitting listbox values to DB maas Java 0 07-02-2010 07:44 AM
Listbox item added with client scripts not submitting with ASP:Listbox Simon Prince ASP .Net 2 10-19-2004 04:11 PM
click listbox and refresh another listbox DC Gringo ASP .Net 0 04-06-2004 02:13 AM
Listbox not submitting correctly? Damien Foggon ASP .Net 1 10-23-2003 01:51 PM
Re: now desparate! - 1st listbox contents disappears when 2nd listbox appears? blenderdude ASP .Net 0 08-03-2003 10:18 PM



Advertisments