/// <summary>
		/// 注册脚本
		/// </summary>
		/// <param name="page"></param>
		public static void RegisterScript(Page page)
		{
			page.NullCheck("page");

			string script = ResourceHelper.LoadStringFromResource(Assembly.GetExecutingAssembly(),
				"MCS.Library.Passport.Controls.AccessTicketScript.htm");

			page.ClientScript.RegisterClientScriptBlock(typeof(AccessTicketHtmlAnchor), "AccessTicketScript", script);
		}
        public static void AttachToPage(Page page)
        {
            page.NullCheck("page");

            if (page.Items.Contains("PropertyEditorHelper") == false)
            {
                page.Init += new EventHandler(page_Init);
                page.Load += new EventHandler(page_Load);
                //page.LoadComplete += new EventHandler(page_LoadComplete);
                page.PreRender += new EventHandler(page_PreRender);
                page.Items.Add("PropertyEditorHelper", true);
            }
        }