コード例 #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);
        }
コード例 #2
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);
        }