Ejemplo n.º 1
0
        /// <summary>Registers the jQuery date picker plugin on the page.</summary>
        private void RegisterDatePickerBehavior()
        {
            this.AddJQueryReference();
            this.AddJQueryUIReference();

            var datePickerOptions = new DatePickerOptions(CultureInfo.CurrentCulture, this.LocalResourceFile);

            this.Page.ClientScript.RegisterClientScriptBlock(typeof(RotatorEdit), "datepicker options", "var datePickerOpts = " + datePickerOptions.Serialize() + ";", true);
        }
        /// <summary>Registers the jQuery date picker plugin on the page.</summary>
        private void RegisterDatePickerBehavior()
        {
            this.AddJQueryReference();
            this.AddJQueryUIReference();

            var datePickerOptions = new DatePickerOptions(CultureInfo.CurrentCulture, this.LocalResourceFile);
            this.Page.ClientScript.RegisterClientScriptBlock(typeof(RotatorEdit), "datepicker options", "var datePickerOpts = " + datePickerOptions.Serialize() + ";", true);
        }