You're most welcome. :-)

On Jul 7, 12:26 pm, gizmo <[email protected]> wrote:
> Thanks for your response.  I understand what you are saying about the
> reasoning behind why I would want to obtain the value of a disabled
> checkbox.  That reason is simple for me...i need it to meet the
> business requirement.  There may be better ways of implementing the
> solution but that's not an option for me here.
>
> It's good to know that this issues is there by design as i can now
> move ahead with a work around rather than trying to fix something that
> I've done wrong.
>
> Thanks again.
> Regards
> Gavin
>
> On Jul 6, 4:17 pm, Cerebrus <[email protected]> wrote:
>
>
>
> > Am no ASP.NET expert by far, but this one is indeed easy. This
> > behaviour is by design:
>
> > Form controls that are disabled do not participate in the Form post...
> > IOW, their values are not submitted to the server. This is the reason
> > why you only see the default value, regardless of the changes you make
> > at the client end. You should review the reasons why you wish to
> > disable the checkbox at the client end and yet obtain its checked
> > value.at the server.
>
> > On Jul 6, 7:20 pm, gizmo <[email protected]> wrote:
>
> > > Hi,
>
> > > I have a webpage with a asp:checkbox control.
>
> > > I enable/disable the control through javascript.
>
> > > When checkbox is disabled I interrogate the checkbox.checked value in
> > > codebehind and it shows as checked=false even when the checkbox is
> > > actually checked.
>
> > > As a test I removed the checkbox disabling code in javascript and
> > > again interrogated the checked value.  This time it showed up
> > > correctly.
>
> > > Has anyone come across this before?  Is this normal behaviour?  What
> > > do i need to to get get the correct checked value of the disabled
> > > checkbox?
>
> > > Your help is much appreciated.
>
> > > Regards
> > > Gavin- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Reply via email to