checked-always on, or 1-run once)
Would I be correct in assuming the best way to do this is to make some kind
of custom control that displays a "checkbox". The control would have JS in
it to change a graphic image that represents the box. If this is the case,
how would I read in the selected value once the form is posted? I'm
planning on having a couple on the same form and I really don't want to
autopost when each box is clicked on...too much overhead...
Thanks.
-Rob T.Use the JS to set a hidden field with an appropriate value.
-Cam
Rob T wrote:
> I need to make a tri-state check box. (It's values will be off,
> checked-always on, or 1-run once)
> Would I be correct in assuming the best way to do this is to make some kind
> of custom control that displays a "checkbox". The control would have JS in
> it to change a graphic image that represents the box. If this is the case,
> how would I read in the selected value once the form is posted? I'm
> planning on having a couple on the same form and I really don't want to
> autopost when each box is clicked on...too much overhead...
> Thanks.
> -Rob T.
>
Good idea...I could program the control to create a hidden field (with a
unique ID) for each checkbox...then just have a little routine to loop
through all the Request.Form items...
Thanks.
"cameron" <cameron.charlebois@.appdepot.com> wrote in message
news:OnL1UKmTEHA.3844@.TK2MSFTNGP11.phx.gbl...
> Use the JS to set a hidden field with an appropriate value.
> -Cam
> Rob T wrote:
> > I need to make a tri-state check box. (It's values will be off,
> > checked-always on, or 1-run once)
> > Would I be correct in assuming the best way to do this is to make some
kind
> > of custom control that displays a "checkbox". The control would have JS
in
> > it to change a graphic image that represents the box. If this is the
case,
> > how would I read in the selected value once the form is posted? I'm
> > planning on having a couple on the same form and I really don't want to
> > autopost when each box is clicked on...too much overhead...
> > Thanks.
> > -Rob T.
0 comments:
Post a Comment