/// <summary>
 /// Render script elements to support tab switching
 /// </summary>
 /// <returns>Script string for final script object initialization</returns>
 public string EnableScriptSupport(Idaho.Web.Page page)
 {
     page.ScriptFile.Add("navigation");
     page.ScriptVariable(this.ID, null);
     return(string.Format(
                "{0} = new TabsObject('{0}'); {0}.OnInit();", this.ID));
 }
Esempio n. 2
0
 /// <summary>
 /// Should be called by control OnInit()
 /// </summary>
 internal void Initialize()
 {
     _startRenderOn = DateTime.Now;
     if (_renderState == RenderStates.InPage)
     {
         _hostPage = (Idaho.Web.Page)_control.Page;
         _hostPage.ScriptFile.AddResource(EcmaScript.Resource.Control);
         // remove child controls to prevent their events
         if (_renderMode == RenderModes.Asynchronous)
         {
             _control.Controls.Clear();
         }
     }
     _eventsCompleted = true;
 }
Esempio n. 3
0
 // for programmatic control creation
 public Image(Idaho.Web.Page page)
 {
     this.Page = page;
 }
Esempio n. 4
0
 protected override void OnInit(EventArgs e)
 {
     _hostPage = (Idaho.Web.Page)base.Page;
     base.OnInit(e);
 }
 /// <summary>
 /// Add reference to self in page for easier rendering
 /// </summary>
 public void Register(Idaho.Web.Page page)
 {
     page.Validation.Add(this);
 }