public ActionResult DatePickerFor(DatePickerModel model)
        {
            // GET: DatePickerFor
            DatePickerModel datepicker = new DatePickerModel();

            datepicker.Id = "DatePickerFor";
            DatePicker date = new DatePicker();

            ViewData["date"] = date;
            return(View(model));
        }
        public ActionResult DatePickerFor()
        {
            // GET: DatePickerFor
            DatePickerModel datepicker = new DatePickerModel();

            datepicker.Id = "DatePickerFor";
            DatePicker date = new DatePicker();

            date.Value       = DateTime.Now;
            ViewData["date"] = date;
            return(View(new DatePickerModel()));
        }
Ejemplo n.º 3
0
 public ActionResult DatePickerFor(DatePickerModel model)
 {
     //posted value is obtained from the model
     datepicker.objectValue = model.objectValue;
     return(View(datepicker));
 }