Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Client callback - update control state

Reply
Thread Tools

Client callback - update control state

 
 
FatherUCKing@gmail.com
Guest
Posts: n/a
 
      12-13-2006
I'm trying to implement an add / remove listbox system ...one listbox
has available values the second represents the saved values. Using the
client-callback features, how would I write the code to ensure that the
control state of the saved selections listbox represents the changes
that occurred on the clientside (ie adding / removing items) and keep
it synchronized with the server representation of the listbox?

 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      12-13-2006
usually your javascript keeps list of selected list values in a hidden
field that is posted back.

-- bruce (sqlwork.com)

http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> I'm trying to implement an add / remove listbox system ...one listbox
> has available values the second represents the saved values. Using the
> client-callback features, how would I write the code to ensure that the
> control state of the saved selections listbox represents the changes
> that occurred on the clientside (ie adding / removing items) and keep
> it synchronized with the server representation of the listbox?
>

 
Reply With Quote
 
 
 
 
FatherUCKing@gmail.com
Guest
Posts: n/a
 
      12-14-2006
Cool, that works - I can now manually pass values to the server code
during client-callback (though it's a bit cumbersome).

So how do I "save" the viewstate during the client callback so that
when the page is finally posted-back, the control state of the second
list box will maintain those values?

bruce barker wrote:
> usually your javascript keeps list of selected list values in a hidden
> field that is posted back.
>
> -- bruce (sqlwork.com)
>
> (E-Mail Removed) wrote:
> > I'm trying to implement an add / remove listbox system ...one listbox
> > has available values the second represents the saved values. Using the
> > client-callback features, how would I write the code to ensure that the
> > control state of the saved selections listbox represents the changes
> > that occurred on the clientside (ie adding / removing items) and keep
> > it synchronized with the server representation of the listbox?
> >


 
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
Update On The Windows Phone 7 Update Update Lawrence D'Oliveiro NZ Computing 2 02-25-2011 08:03 AM
Can not update edit-control text from a callback function in mfc ahong C++ 0 04-21-2009 11:46 AM
Update Panel not refeshing after Callback John Kotuby ASP .Net 2 12-04-2008 03:07 PM
Maintain view state using AJAX or Callback Varangian ASP .Net 2 03-17-2006 12:26 AM
ObjectDataSource update using callback instead of postback =?Utf-8?B?SmltIEhhbW1vbmQ=?= ASP .Net 4 11-15-2005 12:14 PM



Advertisments