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()));
        }
예제 #3
0
 public ActionResult DatePickerFor(DatePickerModel model)
 {
     //posted value is obtained from the model
     datepicker.objectValue = model.objectValue;
     return(View(datepicker));
 }