Esempio n. 1
0
        protected override void OnInit(EventArgs e)
        {
            // Get the type
            Type dateType = new datePicker().GetType();

            Page.ClientScript.RegisterClientScriptBlock(dateType, "datepickerWithPopup", "<script language='javascript' src='/Umbraco_client/datepicker/cal_s.js'></script>");
            Page.ClientScript.RegisterClientScriptBlock(dateType, "datepickerWithPopupHelper", "<script language='javascript' src='/Umbraco_client/datepicker/cal_set_s.js'></script>");
            Page.ClientScript.RegisterClientScriptBlock(dateType, "datepickerWithPopupLang", "<script language='javascript' src='/Umbraco_client/datepicker/lang/calendar-en.js'></script>");
            Page.ClientScript.RegisterClientScriptBlock(dateType, "datepickerWithPopSkin", "<link rel='stylesheet' href='/Umbraco_client/datepicker/aqua/theme.css' />");
            base.OnInit(e);
        }
		protected override void OnInit(EventArgs e)
		{
            // Get the type
		    Type dateType = new datePicker().GetType();
            Page.ClientScript.RegisterClientScriptBlock(dateType, "datepickerWithPopup", "<script language='javascript' src='/Umbraco_client/datepicker/cal_s.js'></script>");
            Page.ClientScript.RegisterClientScriptBlock(dateType, "datepickerWithPopupHelper", "<script language='javascript' src='/Umbraco_client/datepicker/cal_set_s.js'></script>");
            Page.ClientScript.RegisterClientScriptBlock(dateType, "datepickerWithPopupLang", "<script language='javascript' src='/Umbraco_client/datepicker/lang/calendar-en.js'></script>");
            Page.ClientScript.RegisterClientScriptBlock(dateType, "datepickerWithPopSkin", "<link rel='stylesheet' href='/Umbraco_client/datepicker/aqua/theme.css' />");
			base.OnInit (e);
		}