public ActionResult SlideShow(string changedValue, string fieldName) { SlideShow ss = new SlideShow(); ss.Initialize(RenderingContext.Current.Rendering); // Update Checkbox field if requested if (!String.IsNullOrEmpty(changedValue) && !String.IsNullOrEmpty(fieldName)) { ss.Item.Editing.BeginEdit(); using (new SecurityDisabler()) { switch (fieldName) { case ("PauseOnHover"): ss.chPauseOnHover.Checked = (changedValue == "True" ? true : false); break; case ("FadeTransition"): ss.chFadeTransition.Checked = (changedValue == "True" ? true : false); break; case ("SlideShowNoArrow"): ss.chSlideShowNoArrow.Checked = (changedValue == "False" ? true : false); break; case ("SlideShowNoIndicator"): ss.chSlideShowNoIndicator.Checked = (changedValue == "False" ? true : false); break; } } ss.Item.Editing.EndEdit(); } return(PartialView(ss)); }