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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

117261 Sep 18,2014 06:00 AM Sep 23,2014 07:11 AM ASP.NET MVC 1
loading
Tags: Checkbox
Brice FROMENTIN
Asked On September 18, 2014 06:00 AM

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

Saranya Sivakumar [Syncfusion]
Replied On September 23, 2014 07:11 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;