We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Submitting checkbox control (nothing get in the request.Form)

Hi,

I am submitting a check-box control. Nevertheless, it is not posted.
What is the best way to get the check-boxes values ? 

Thanks for your advices,

ie:
@Html.EJ().CheckBox("MyOwnLabel").CssClass("nodetext").Checked(true)
in the post, the Request.Form doesn't get any data for my checkbox.


Brice

1 Reply

SS Saranya Sivakumar Syncfusion Team September 23, 2014 11:11 AM UTC

Hi Brice,

Sorry for the Inconvenience caused.

We are able to reproduce the issue (Get value of a checkbox in form postback) and an issue report has been logged on this. The fix for this issue will be available in our upcoming service pack release which is expected to be rolled out at the end of this month (September). We will update you once this issue has been resolved.

As a workaround solution, we have to add the name attribute and value attribute to the Checkbox in the script section. We have achieved this requirement in the following sample and please find the sample under the following location.

Sample Location: Sample

Please let us know if you have further queries.

Regards,

Saranya.S


Loader.
Up arrow icon