MasterPage.master.cs
上传用户:husern
上传日期:2022-03-24
资源大小:534k
文件大小:2k
源码类别:

编辑器/阅读器

开发平台:

C#

  1. // -- FILE ------------------------------------------------------------------
  2. // name       : MasterPage.cs
  3. // project    : Itenso Web User Forms
  4. // created    : Jani Giannoudis - 2008.10.30
  5. // language   : c#
  6. // environment: .NET 2.0
  7. // copyright  : (c) 2008 by Itenso GmbH, Switzerland
  8. // --------------------------------------------------------------------------
  9. using System;
  10. using System.Web.UI;
  11. using Itenso.WebUserForms.Runtime;
  12. // --------------------------------------------------------------------------
  13. public partial class MasterPage : System.Web.UI.MasterPage
  14. {
  15. // ------------------------------------------------------------------------
  16. public bool ShowRuntimeHeaderInfo
  17. {
  18. get { return this.UserFormInfoControl1.ShowRuntimeHeaderInfo; }
  19. set { this.UserFormInfoControl1.ShowRuntimeHeaderInfo = value; }
  20. } // ShowRuntimeHeaderInfo
  21. // ------------------------------------------------------------------------
  22. protected override void OnLoad( EventArgs e )
  23. {
  24. base.OnLoad( e );
  25. // header
  26. DemoMenu demoMenu = new DemoMenu();
  27. demoMenu.Title = "Web User Forms - Run-Time";
  28. demoMenu.AddMenuItem( "~/SimpleUserForm.aspx", "Simple Form" );
  29. demoMenu.AddMenuItem( "~/ValidationUserForm.aspx", "Validation" );
  30. demoMenu.AddMenuItem( "~/LookupsUserForm.aspx", "Lookups" );
  31. demoMenu.AddMenuItem( "~/VariablesUserForm.aspx", "Variables" );
  32. demoMenu.AddMenuItem( "~/ClientScriptUserForm.aspx", "Client Script" );
  33. demoMenu.AddMenuItem( "~/PersistentUserForm.aspx", "Persistence" );
  34. demoMenu.AddMenuItem( "~/SecurityUserForm.aspx", "Security" );
  35. demoMenu.AddMenuItem( "~/VirtualUserForm.aspx", "Virtual Form" );
  36. demoMenu.AddMenuItem( "~/RuntimeControlsUserForm.aspx", "Run-Time Controls" );
  37. Header.Controls.Add( demoMenu );
  38. // footer
  39. Footer.Controls.Add( new UserFormXmlInfoControl() );
  40. } // OnLoad
  41. } // class MasterPage
  42. // -- EOF -------------------------------------------------------------------