Example #1
0
 public ActionResult Features([Bind] PopupControlFeaturesDemoOptions options)
 {
     if (!ModelState.IsValid)
     {
         if (!ModelState.IsValidField("Opacity"))
         {
             options.Opacity = PopupControlFeaturesDemoOptions.DefaultOpacity;
         }
         if (!ModelState.IsValidField("AppearAfter"))
         {
             options.AppearAfter = PopupControlFeaturesDemoOptions.DefaultAppearAfter;
         }
         if (!ModelState.IsValidField("DisappearAfter"))
         {
             options.DisappearAfter = PopupControlFeaturesDemoOptions.DefaultDisappearAfter;
         }
     }
     ViewData["Options"] = options;
     return(DemoView("Features"));
 }
Example #2
0
 public ActionResult Features()
 {
     ViewData["Options"] = new PopupControlFeaturesDemoOptions();
     return(DemoView("Features"));
 }