Sep 16, 2019 10:47 AM|jalali|LINK
I have a third party control Shield UI
Switch which is rendering html checkbox control in MVC View with CSS style, as well all know that normally
@Html.CheckBoxFor is rendered along with Hidden Text Box Control. I bind the my model with the control and it works fine.... (In the Edit Mode).
But when I re-submit the changed value of the Switch control (Check Box Control in HTML) the updated value not sending to Controller? Anyone can help?
@Html.ShieldSwitchFor(model => model.PublishedStatus)
.Checked(Model.PublishedStatus) // Set the Default Value of the Model here!
@Html.HiddenFor(model => model.PublishedStatus)