Global.asax
上传用户:husern
上传日期:2022-03-24
资源大小:534k
文件大小:1k
源码类别:

编辑器/阅读器

开发平台:

C#

  1. <%-- FILE -------------------------------------------------------------------
  2. // name       : Global.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. <%@ Application Language="C#" %>
  10. <%@ Import Namespace="System" %>
  11. <%@ Import Namespace="System.IO" %>
  12. <%@ Import Namespace="System.Web.Hosting" %>
  13. <%@ Import Namespace="Itenso.WebUserForms.Runtime" %>
  14. <script RunAt="server">
  15.   // ------------------------------------------------------------------------
  16.   private void Application_Start( Object sender, EventArgs e )
  17.   {
  18.     string physicalFormsPath = Path.Combine( HostingEnvironment.ApplicationPhysicalPath, "VirtualUserForms" );
  19.     HostingEnvironment.RegisterVirtualPathProvider(
  20. new VirtualUserFormFileProvider( "~/VirtualUserForms", physicalFormsPath ) );
  21.   } // Application_Start
  22.   // ------------------------------------------------------------------------
  23.   private void Application_End( Object sender, EventArgs e )
  24.   {
  25.   } // Application_End
  26. </script>
  27. <%-- EOF ------------------------------------------------------------------%>