find a dhtml slider control on the web somewhere
it should either have a hidden form control that it writes to (which
you can grab on the server side), or it will have a client side event
that is raised when the user lets go of the mouse. you can then write
to a hidden form field in the event handler.
in either case you could use:
string sliderPercent = Request.Form["myHiddenSliderValue"];
I would prefer to find a way to create my own, since the functionality I
need is minimal - click on a scale and return a numeric value between 1
and
100 to the server.
Currently I am using a table with 100 cells, each containing a button
with a
command argument between 1 and 100.
The table is created dynamically, and the buttons are wired to an event
handler which saves the value. Other types of dynamically created
controls
(radio buttons, check boxes, dropdown lists, etc.) also use this event
handler.
It works fine, except that I would rather the scale selection did not
post
back immediately. Instead, I would rather wait until the page is posted
back by a Save button and process all event handlers at the same time.
This
does not appear to be possible, though, as discussed in my post about
preventing autopostback for a button click.
Thanks
Bill