Author: kostat
Date: 2006-12-07 11:54:28 -0500 (Thu, 07 Dec 2006)
New Revision: 69190

Added:
   
trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/Resources/Global.asax.cs
Modified:
   trunk/mcs/class/System.Web/Makefile
   
trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/Resources/Global.asax
   trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/WebTest.cs
Log:
create codebehind for Global.asax

Modified: trunk/mcs/class/System.Web/Makefile
===================================================================
--- trunk/mcs/class/System.Web/Makefile 2006-12-07 16:36:02 UTC (rev 69189)
+++ trunk/mcs/class/System.Web/Makefile 2006-12-07 16:54:28 UTC (rev 69190)
@@ -69,6 +69,7 @@
 OTHER_RES = $(RESOURCE_FILES_1)
 TEST_RESOURCE_FILES = \
        Test/mainsoft/NunitWeb/NunitWeb/Resources/Global.asax \
+       Test/mainsoft/NunitWeb/NunitWeb/Resources/Global.asax.cs \
        Test/mainsoft/NunitWeb/NunitWeb/Resources/My.ashx \
        Test/mainsoft/NunitWeb/NunitWeb/Resources/My.master \
        Test/mainsoft/NunitWeb/NunitWeb/Resources/MyPage.aspx \

Modified: 
trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/Resources/Global.asax
===================================================================
--- 
trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/Resources/Global.asax
    2006-12-07 16:36:02 UTC (rev 69189)
+++ 
trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/Resources/Global.asax
    2006-12-07 16:54:28 UTC (rev 69190)
@@ -1,36 +1 @@
-<%@ Application Language="C#" %>
-
-<script runat="server" Language="C#">
-
-    void Application_Start(object sender, EventArgs e) 
-    {
-        // Code that runs on application startup
-    }
-    
-    void Application_End(object sender, EventArgs e) 
-    {
-        //  Code that runs on application shutdown
-    }
-        
-    void Application_Error(object sender, EventArgs e) 
-    { 
-        // Code that runs when an unhandled error occurs
-        Exception objErr = Server.GetLastError().GetBaseException();
-        MonoTests.SystemWeb.Framework.WebTest.RegisterException (objErr);
-        Server.ClearError();
-    }
-
-    void Session_Start(object sender, EventArgs e) 
-    {
-        // Code that runs when a new session is started
-    }
-
-    void Session_End(object sender, EventArgs e) 
-    {
-        // Code that runs when a session ends. 
-        // Note: The Session_End event is raised only when the sessionstate 
mode
-        // is set to InProc in the Web.config file. If session mode is set to 
StateServer 
-        // or SQLServer, the event is not raised.
-    }
-       
-</script>
+<%@ Application Language="C#" Inherits="MainsoftWebApp20.Global" 
CodeFile="Global.asax.cs" %>

Added: 
trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/Resources/Global.asax.cs
===================================================================
--- 
trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/Resources/Global.asax.cs
 2006-12-07 16:36:02 UTC (rev 69189)
+++ 
trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/Resources/Global.asax.cs
 2006-12-07 16:54:28 UTC (rev 69190)
@@ -0,0 +1,15 @@
+using System;
+
+namespace MainsoftWebApp20
+{
+       public partial class Global : System.Web.HttpApplication
+       {
+               void Application_Error (object sender, EventArgs e)
+               {
+                       // Code that runs when an unhandled error occurs
+                       Exception objErr = Server.GetLastError 
().GetBaseException ();
+                       MonoTests.SystemWeb.Framework.WebTest.RegisterException 
(objErr);
+                       Server.ClearError ();
+               }
+       }
+}

Modified: trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/WebTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/WebTest.cs       
2006-12-07 16:36:02 UTC (rev 69189)
+++ trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/WebTest.cs       
2006-12-07 16:54:28 UTC (rev 69190)
@@ -395,6 +395,7 @@
                {
                        CopyResource (typeof (WebTest), "My.ashx", "My.ashx");
                        CopyResource (typeof (WebTest), "Global.asax", 
"Global.asax");
+                       CopyResource (typeof (WebTest), "Global.asax.cs", 
"Global.asax.cs");
 #if VISUAL_STUDIO
                        CopyResource (typeof (WebTest),
                                
"MonoTests.SystemWeb.Framework.Resources.Web.config",

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to